/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | JarFileTest.java | 161 JarFile jarFile = new JarFile(new File("Wrong.file")); in test_ConstructorLjava_io_File() local 169 JarFile jarFile = new JarFile(file); in test_ConstructorLjava_io_File() local 170 jarFile.close(); in test_ConstructorLjava_io_File() 181 JarFile jarFile = new JarFile("Wrong.file"); in test_ConstructorLjava_lang_String() local 190 JarFile jarFile = new JarFile(fileName); in test_ConstructorLjava_lang_String() local 191 jarFile.close(); in test_ConstructorLjava_lang_String() 202 JarFile jarFile = new JarFile("Wrong.file", false); in test_ConstructorLjava_lang_StringZ() local 211 JarFile jarFile = new JarFile(fileName, true); in test_ConstructorLjava_lang_StringZ() local 212 jarFile.close(); in test_ConstructorLjava_lang_StringZ() 223 JarFile jarFile = new JarFile(new File("Wrong.file"), true); in test_ConstructorLjava_io_FileZ() local [all …]
|
D | JarEntryTest.java | 37 private JarFile jarFile; field in JarEntryTest 57 jarFile = new JarFile(new File(resources, jarName)); in setUp() 62 if (jarFile != null) { in tearDown() 63 jarFile.close(); in tearDown() 72 JarEntry newJarEntry = new JarEntry(jarFile.getJarEntry(entryName)); in test_ConstructorLjava_util_jar_JarEntry() 85 assertNotNull("Jar file is null", jarFile); in test_ConstructorLjava_util_zip_ZipEntry() 86 zipEntry = jarFile.getEntry(entryName); in test_ConstructorLjava_util_zip_ZipEntry() 119 zipEntry = jarFile.getEntry(entryName2); in testCertificatesAndCodesigners() 127 JarFile jarFile = new JarFile(file); in testCertificatesAndCodesigners() local 128 JarEntry jarEntry1 = jarFile.getJarEntry("Test.class"); in testCertificatesAndCodesigners() [all …]
|
D | ManifestTest.java | 62 JarFile jarFile = new JarFile(new File(resources, fileName)); in getManifest() local 63 Manifest m = jarFile.getManifest(); in getManifest() 64 jarFile.close(); in getManifest()
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | ClassPathURLStreamHandlerTest.java | 53 private File jarFile; field in ClassPathURLStreamHandlerTest 59 jarFile = new File(resources, JAR); in setUp() 69 String fileName = jarFile.getPath(); in testConstructor() 75 String fileName = jarFile.getPath(); in testGetEntryOrNull() 108 String fileName = jarFile.getPath(); in checkGetEntryUrlOrNull() 116 assertOpenConnectionOk(jarFile, expectedJarRelativeURI, streamHandler); in checkGetEntryUrlOrNull() 120 String fileName = jarFile.getPath(); in testIsEntryStored() 136 String fileName = jarFile.getPath(); in testOpenConnection() 139 assertOpenConnectionOk(jarFile, ENTRY_IN_ROOT, streamHandler); in testOpenConnection() 140 assertOpenConnectionOk(jarFile, ENTRY_IN_SUBDIR, streamHandler); in testOpenConnection() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
D | OldJarEntryTest.java | 32 private JarFile jarFile; field in OldJarEntryTest 41 jarFile = new JarFile(new File(resources, jarName)); in setUp() 46 if (jarFile != null) { in tearDown() 47 jarFile.close(); in tearDown() 56 JarEntry newJarEntry = new JarEntry(jarFile.getJarEntry(entryName)); in test_ConstructorLjava_util_jar_JarEntry_on_null() 72 assertNotNull("Jar file is null", jarFile); in test_ConstructorLjava_util_zip_ZipEntry() 73 zipEntry = jarFile.getEntry(entryName); in test_ConstructorLjava_util_zip_ZipEntry() 102 assertNotNull("Jar file is null", jarFile); in test_ConstructorLjava_lang_String() 103 zipEntry = jarFile.getEntry(entryName); in test_ConstructorLjava_lang_String() 128 assertNotNull("Jar file is null", jarFile); in test_ConstructorLjava_util_jar_JarEntry() [all …]
|
D | OldJarFileTest.java | 110 JarFile jarFile = new JarFile(new File(resources, modifiedJarName), true); in test_close() local 111 jarFile.entries(); in test_close() 113 jarFile.close(); in test_close() 114 jarFile.close(); in test_close()
|
/libcore/luni/src/main/java/libcore/io/ |
D | ClassPathURLStreamHandler.java | 43 private final JarFile jarFile; field in ClassPathURLStreamHandler 46 jarFile = new JarFile(jarFileName); in ClassPathURLStreamHandler() 59 if (jarFile.getEntry(entryName) != null) { in getEntryUrlOrNull() 77 ZipEntry entry = jarFile.getEntry(entryName); in isEntryStored() 88 jarFile.close(); in close() 128 this.jarEntry = jarFile.getEntry(getEntryName()); in connect() 132 + ", zipfile=" + jarFile.getName()); in connect() 146 connectionJarFile = jarFile; in getJarFile() 148 connectionJarFile = new JarFile(jarFile.getName()); in getJarFile() 162 return jarInput = new FilterInputStream(jarFile.getInputStream(jarEntry)) { in getInputStream()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
D | JarURLConnection.java | 74 private JarFile jarFile; field in JarURLConnection 90 return jarFile; in getJarFile() 111 jarFile.close(); in close() 122 jarFile = factory.get(getJarFileURL(), getUseCaches()); in connect() 132 jarFileURLConnection = factory.getConnection(jarFile); in connect() 138 jarEntry = (JarEntry)jarFile.getEntry(entryName); in connect() 142 jarFile.close(); in connect() 148 jarFile.getName()); in connect() 166 jarFile.getName()); in getInputStream() 168 result = new JarURLInputStream (jarFile.getInputStream(jarEntry)); in getInputStream() [all …]
|
D | JarFileFactory.java | 59 URLConnection getConnection(JarFile jarFile) throws IOException { in getConnection() argument 62 u = urlCache.get(jarFile); in getConnection() 112 public void close(JarFile jarFile) { in close() argument 114 URL urlRemoved = urlCache.remove(jarFile); in close() 152 private Permission getPermission(JarFile jarFile) { in getPermission() argument 154 URLConnection uc = getConnection(jarFile); in getPermission()
|
D | URLJarFile.java | 225 JarFile jarFile = new URLJarFile(tmpFile.toFile(), closeController); in retrieve() 227 return jarFile; in retrieve() 288 public void close(JarFile jarFile); in close() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | JarURLConnectionTest.java | 41 private URL copyAndOpenResourceStream(String jarFile, String inFile) in copyAndOpenResourceStream() argument 46 Support_Resources.copyFile(resources, "net", jarFile); in copyAndOpenResourceStream() 47 File file = new File(resources.toString() + "/net/" + jarFile); in copyAndOpenResourceStream() 143 File jarFile = File.createTempFile("1+2 3", "test.jar"); in test_getJarFile29() local 144 jarFile.deleteOnExit(); in test_getJarFile29() 145 JarOutputStream out = new JarOutputStream(new FileOutputStream(jarFile)); in test_getJarFile29() 151 + jarFile.getAbsolutePath().replaceAll(" ", "%20") + "!/") in test_getJarFile29() 211 FileOutputStream jarFile = new FileOutputStream(file); in test_getInputStream_DeleteJarFileUsingURLConnection() local 213 jarFile)); in test_getInputStream_DeleteJarFileUsingURLConnection()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldJarURLConnectionTest.java | 46 private URL createContent(String jarFile, String inFile) in createContent() argument 51 Support_Resources.copyFile(resources, "net", jarFile); in createContent() 52 File file = new File(resources.toString() + "/net/" + jarFile); in createContent() 211 File jarFile = File.createTempFile("1+2 3", "test.jar"); in test_getJarFile29() local 212 jarFile.deleteOnExit(); in test_getJarFile29() 213 JarOutputStream out = new JarOutputStream(new FileOutputStream(jarFile)); in test_getJarFile29() 219 + jarFile.getAbsolutePath().replaceAll(" ", "%20") + "!/") in test_getJarFile29() 291 File jarFile = File.createTempFile("file", ".jar", tmpDir); in test_getInputStream_DeleteJarFileUsingURLConnection() local 292 String jarFileName = jarFile.getPath(); in test_getInputStream_DeleteJarFileUsingURLConnection() 307 assertTrue(jarFile.delete()); in test_getInputStream_DeleteJarFileUsingURLConnection()
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | PathClassLoaderTest.java | 111 JarFile jarFile = new JarFile(f, true /* verify */, ZipFile.OPEN_READ); in test_classLoader_tampered_certificate_loadsOK_nullCertificates() local 113 JarEntry signedEntry = (JarEntry) jarFile.getEntry(signedEntryName); in test_classLoader_tampered_certificate_loadsOK_nullCertificates() 119 jarFile.close(); in test_classLoader_tampered_certificate_loadsOK_nullCertificates()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | OldAndroidZipStressTest.java | 39 JarFile jarFile = new JarFile(file); in checkJarCertificates() local 40 JarEntry je = jarFile.getJarEntry("AndroidManifest.xml"); in checkJarCertificates() 46 InputStream is = jarFile.getInputStream(je); in checkJarCertificates()
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | FileSystemsTest.java | 183 File jarFile = new File(filesSetup.getTestDir(), "filesystemstest.jar"); in createClassLoaderForTestFileSystems() local 185 OutputStream out = new FileOutputStream(jarFile)) in createClassLoaderForTestFileSystems() 190 return new PathClassLoader(jarFile.getAbsolutePath(), getClass().getClassLoader()); in createClassLoaderForTestFileSystems()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ClassLoaderTest.java | 229 private static boolean isJarFileClosed(JarFile jarFile) { in isJarFileClosed() argument 232 jarFile.getEntry("anyName"); in isJarFileClosed()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | URLClassPath.java | 954 JarFile jarFile = ((JarURLConnection)uc).getJarFile(); 955 return checkJar(jarFile);
|