Searched defs:jarFile (Results 1 - 10 of 10) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/jar/
H A DOldJarEntryTest.java32 private JarFile jarFile; field in class:OldJarEntryTest
41 jarFile = new JarFile(new File(resources, jarName));
46 if (jarFile != null) {
47 jarFile.close();
56 JarEntry newJarEntry = new JarEntry(jarFile.getJarEntry(entryName));
72 assertNotNull("Jar file is null", jarFile);
73 zipEntry = jarFile.getEntry(entryName);
102 assertNotNull("Jar file is null", jarFile);
103 zipEntry = jarFile.getEntry(entryName);
128 assertNotNull("Jar file is null", jarFile);
[all...]
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
H A DJarFileFactory.java59 URLConnection getConnection(JarFile jarFile) throws IOException { argument
62 u = urlCache.get(jarFile);
112 public void close(JarFile jarFile) { argument
114 URL urlRemoved = urlCache.remove(jarFile);
152 private Permission getPermission(JarFile jarFile) { argument
154 URLConnection uc = getConnection(jarFile);
H A DURLJarFile.java196 JarFile jarFile = new URLJarFile(tmpFile.toURL(), closeController);
197 return jarFile;
261 public void close(JarFile jarFile); argument
H A DJarURLConnection.java74 private JarFile jarFile; field in class:JarURLConnection
90 return jarFile;
111 jarFile.close();
122 jarFile = factory.get(getJarFileURL(), getUseCaches());
125 * to get the jarFile, and set it as our permission.
128 jarFileURLConnection = factory.getConnection(jarFile);
132 jarEntry = (JarEntry)jarFile.getEntry(entryName);
136 jarFile.close();
142 jarFile.getName());
160 jarFile
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DClassLoaderTest.java229 private static boolean isJarFileClosed(JarFile jarFile) { argument
232 jarFile.getEntry("anyName");
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DJarURLConnectionTest.java41 private URL copyAndOpenResourceStream(String jarFile, String inFile) argument
46 Support_Resources.copyFile(resources, "net", jarFile);
47 File file = new File(resources.toString() + "/net/" + jarFile);
143 File jarFile = File.createTempFile("1+2 3", "test.jar");
144 jarFile.deleteOnExit();
145 JarOutputStream out = new JarOutputStream(new FileOutputStream(jarFile));
151 + jarFile.getAbsolutePath().replaceAll(" ", "%20") + "!/")
211 FileOutputStream jarFile = new FileOutputStream(file);
213 jarFile));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
H A DJarEntryTest.java37 private JarFile jarFile; field in class:JarEntryTest
57 jarFile = new JarFile(new File(resources, jarName));
62 if (jarFile != null) {
63 jarFile.close();
72 JarEntry newJarEntry = new JarEntry(jarFile.getJarEntry(entryName));
85 assertNotNull("Jar file is null", jarFile);
86 zipEntry = jarFile.getEntry(entryName);
119 zipEntry = jarFile.getEntry(entryName2);
127 JarFile jarFile = new JarFile(file);
128 JarEntry jarEntry1 = jarFile
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DClassPathURLStreamHandler.java44 private final JarFile jarFile; field in class:ClassPathURLStreamHandler
47 jarFile = new JarFile(jarFileName);
60 if (findEntryWithDirectoryFallback(jarFile, entryName) != null) {
78 ZipEntry entry = jarFile.getEntry(entryName);
89 jarFile.close();
93 * Finds an entry with the specified name in the {@code jarFile}. If an exact match isn't found it
97 static ZipEntry findEntryWithDirectoryFallback(JarFile jarFile, String entryName) { argument
98 ZipEntry entry = jarFile.getEntry(entryName);
100 entry = jarFile.getEntry(entryName + "/");
114 * Indicates the behavior of the {@link #jarFile}
[all...]
/libcore/luni/src/test/java/libcore/java/net/
H A DOldJarURLConnectionTest.java46 private URL createContent(String jarFile, String inFile) argument
51 Support_Resources.copyFile(resources, "net", jarFile);
52 File file = new File(resources.toString() + "/net/" + jarFile);
211 File jarFile = File.createTempFile("1+2 3", "test.jar");
212 jarFile.deleteOnExit();
213 JarOutputStream out = new JarOutputStream(new FileOutputStream(jarFile));
219 + jarFile.getAbsolutePath().replaceAll(" ", "%20") + "!/")
291 File jarFile = File.createTempFile("file", ".jar", tmpDir);
292 String jarFileName = jarFile.getPath();
307 assertTrue(jarFile
[all...]
/libcore/luni/src/test/java/libcore/io/
H A DClassPathURLStreamHandlerTest.java50 private File jarFile; field in class:ClassPathURLStreamHandlerTest
56 jarFile = new File(resources, JAR);
66 String fileName = jarFile.getPath();
72 String fileName = jarFile.getPath();
105 String fileName = jarFile.getPath();
113 assertOpenConnectionOk(jarFile, expectedJarRelativeURI, streamHandler);
117 String fileName = jarFile.getPath();
133 String fileName = jarFile.getPath();
136 assertOpenConnectionOk(jarFile, ENTRY_IN_ROOT, streamHandler);
137 assertOpenConnectionOk(jarFile, ENTRY_IN_SUBDI
150 assertOpenConnectionConnectFails( File jarFile, String entryName, URLStreamHandler streamHandler) argument
168 assertOpenConnectionOk(File jarFile, String entryName, ClassPathURLStreamHandler streamHandler) argument
217 createJarUrl(File jarFile, String entryName, URLStreamHandler streamHandler) argument
[all...]

Completed in 239 milliseconds