Home
last modified time | relevance | path

Searched refs:entryName (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/jar/
DOldJarEntryTest.java34 private final String entryName = "foo/bar/A.class"; field in OldJarEntryTest
56 JarEntry newJarEntry = new JarEntry(jarFile.getJarEntry(entryName)); in test_ConstructorLjava_util_jar_JarEntry_on_null()
73 zipEntry = jarFile.getEntry(entryName); in test_ConstructorLjava_util_zip_ZipEntry()
77 assertEquals("Wrong entry constructed--wrong name", entryName, jarEntry in test_ConstructorLjava_util_zip_ZipEntry()
103 zipEntry = jarFile.getEntry(entryName); in test_ConstructorLjava_lang_String()
105 jarEntry = new JarEntry(entryName); in test_ConstructorLjava_lang_String()
107 assertEquals("Wrong entry constructed--wrong name", entryName, jarEntry in test_ConstructorLjava_lang_String()
129 JarEntry je = jarFile.getJarEntry(entryName); in test_ConstructorLjava_util_jar_JarEntry()
133 assertEquals("Wrong entry constructed--wrong name", entryName, jarEntry in test_ConstructorLjava_util_jar_JarEntry()
DOldJarOutputStreamTest.java31 final String entryName = "foo/bar/execjartest/MainClass.class"; in test_putNextEntryLjava_util_zip_ZipEntry() local
38 jout.putNextEntry(new JarEntry(entryName)); in test_putNextEntryLjava_util_zip_ZipEntry()
DOldJarFileTest.java32 private final String entryName = "foo/bar/A.class"; field in OldJarFileTest
125 InputStream is = jf.getInputStream(jf.getEntry(entryName)); in test_getInputStreamLjava_util_jar_JarEntry()
/libcore/ojluni/src/main/java/java/net/
DJarURLConnection.java140 private String entryName; field in JarURLConnection
176 entryName = null; in parseSpecs()
180 entryName = spec.substring(separator, spec.length()); in parseSpecs()
181 entryName = ParseUtil.decode (entryName); in parseSpecs()
202 return entryName; in getEntryName()
249 return getJarFile().getJarEntry(entryName); in getJarEntry()
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DJarURLConnection.java68 private String entryName; field in JarURLConnection
85 entryName = getEntryName(); in JarURLConnection()
137 if ((entryName != null)) { in connect()
138 jarEntry = (JarEntry)jarFile.getEntry(entryName); in connect()
146 throw new FileNotFoundException("JAR entry " + entryName + in connect()
160 if (entryName == null) { in getInputStream()
164 throw new FileNotFoundException("JAR entry " + entryName + in getInputStream()
200 if (entryName == null) { in getContent()
210 if (entryName == null) { in getContentType()
224 contentType = guessContentTypeFromName(entryName); in getContentType()
/libcore/luni/src/test/java/libcore/libcore/io/
DClassPathURLStreamHandlerTest.java106 String entryName, String expectedJarRelativeURI) throws IOException { in checkGetEntryUrlOrNull() argument
109 URL urlOrNull = streamHandler.getEntryUrlOrNull(entryName); in checkGetEntryUrlOrNull()
110 assertNotNull("URL was unexpectedly null for " + entryName, urlOrNull); in checkGetEntryUrlOrNull()
154 File jarFile, String entryName, URLStreamHandler streamHandler) throws IOException { in assertOpenConnectionConnectFails() argument
156 URL standardUrl = createJarUrl(jarFile, entryName, null /* use default stream handler */); in assertOpenConnectionConnectFails()
163 URL actualUrl = createJarUrl(jarFile, entryName, streamHandler); in assertOpenConnectionConnectFails()
171 private static void assertOpenConnectionOk(File jarFile, String entryName, in assertOpenConnectionOk() argument
173 URL standardUrl = createJarUrl(jarFile, entryName, null /* use default stream handler */); in assertOpenConnectionOk()
177 URL actualUrl = createJarUrl(jarFile, entryName, streamHandler); in assertOpenConnectionOk()
220 private static URL createJarUrl(File jarFile, String entryName, URLStreamHandler streamHandler) in createJarUrl() argument
[all …]
/libcore/luni/src/main/java/libcore/io/
DClassPathURLStreamHandler.java58 public URL getEntryUrlOrNull(String entryName) { in getEntryUrlOrNull() argument
59 if (jarFile.getEntry(entryName) != null) { in getEntryUrlOrNull()
63 String encodedName = ParseUtil.encodePath(entryName, false); in getEntryUrlOrNull()
76 public boolean isEntryStored(String entryName) { in isEntryStored() argument
77 ZipEntry entry = jarFile.getEntry(entryName); in isEntryStored()
/libcore/ojluni/src/main/java/java/text/
DEntryPair.java48 public String entryName; field in EntryPair
56 this.entryName = name; in EntryPair()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarEntryTest.java41 private final String entryName = "foo/bar/A.class"; field in JarEntryTest
72 JarEntry newJarEntry = new JarEntry(jarFile.getJarEntry(entryName)); in test_ConstructorLjava_util_jar_JarEntry()
86 zipEntry = jarFile.getEntry(entryName); in test_ConstructorLjava_util_zip_ZipEntry()
90 assertEquals("Wrong entry constructed--wrong name", entryName, jarEntry in test_ConstructorLjava_util_zip_ZipEntry()
DJarFileTest.java95 private final String entryName = "foo/bar/A.class"; field in JarFileTest
279 assertTrue(jarFile.getEntry(entryName).getName().equals(entryName)); in testConstructor_file()
283 assertTrue(jarFile.getEntry(entryName).getName().equals(entryName)); in testConstructor_file()
316 entryName).getSize()); in test_getEntryLjava_lang_String()
353 entryName).getSize()); in test_getJarEntryLjava_lang_String()
882 java.io.InputStream is = jf.getInputStream(jf.getEntry(entryName)); in test_getInputStreamLjava_util_jar_JarEntry()
/libcore/ojluni/src/main/java/sun/misc/
DURLClassPath.java1021 String entryName;
1026 entryName = entry.getName();
1027 if((pos = entryName.lastIndexOf("/")) != -1)
1028 entryName = entryName.substring(0, pos);
1029 if (entryName.equals(packageName)) {
/libcore/luni/src/test/java/libcore/java/util/zip/
DAbstractZipFileTest.java519 for (String entryName : entryNames) { in testArchivesWithRelativePaths()
520 ZipEntry ze = new ZipEntry(entryName); in testArchivesWithRelativePaths()
539 for (String entryName : entryNames) { in testArchivesWithRelativePaths()
540 assertTrue(entryNamesFromFile.contains(entryName)); in testArchivesWithRelativePaths()
/libcore/dalvik/src/main/java/dalvik/system/
DDexPathList.java890 String entryName = zipDir + '/' + name; in findNativeLibrary() local
891 if (urlHandler.isEntryStored(entryName)) { in findNativeLibrary()
892 return path.getPath() + zipSeparator + entryName; in findNativeLibrary()
/libcore/ojluni/src/main/native/
Dzip_util.c705 const char* entryName = (const char *)cp + CENHDR; in readCEN() local
706 if (!isValidEntryName(entryName, nlen)) { in readCEN()
711 if (isMetaName(entryName, nlen)) { in readCEN()
719 entries[i].hash = hashN(entryName, nlen); in readCEN()
733 if (strncmp(entryName, chainName, nlen) == 0) { in readCEN()