Home
last modified time | relevance | path

Searched refs:JarFile (Results 1 – 25 of 37) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarFileTest.java45 import java.util.jar.JarFile;
161 JarFile jarFile = new JarFile(new File("Wrong.file")); in test_ConstructorLjava_io_File()
169 JarFile jarFile = new JarFile(file); in test_ConstructorLjava_io_File()
181 JarFile jarFile = new JarFile("Wrong.file"); in test_ConstructorLjava_lang_String()
190 JarFile jarFile = new JarFile(fileName); in test_ConstructorLjava_lang_String()
202 JarFile jarFile = new JarFile("Wrong.file", false); in test_ConstructorLjava_lang_StringZ()
211 JarFile jarFile = new JarFile(fileName, true); in test_ConstructorLjava_lang_StringZ()
223 JarFile jarFile = new JarFile(new File("Wrong.file"), true); in test_ConstructorLjava_io_FileZ()
231 JarFile jarFile = new JarFile(file, false); in test_ConstructorLjava_io_FileZ()
243 JarFile jarFile = new JarFile(new File("Wrong.file"), true, in test_ConstructorLjava_io_FileZI()
[all …]
DJarEntryTest.java26 import java.util.jar.JarFile;
37 private JarFile jarFile;
57 jarFile = new JarFile(new File(resources, jarName)); in setUp()
100 JarFile attrJar = null; in test_getAttributes()
105 attrJar = new JarFile(file); in test_getAttributes()
120 JarFile attrJar = new JarFile(file); in test_getRealName()
140 JarFile jarFile = new JarFile(file); in testCertificatesAndCodesigners()
174 JarFile jarFile = new JarFile(file); in test_getCodeSigners()
DManifestTest.java27 import java.util.jar.JarFile;
62 JarFile jarFile = new JarFile(new File(resources, fileName)); in getManifest()
/libcore/luni/src/test/java/libcore/java/util/jar/
DOldJarFileTest.java23 import java.util.jar.JarFile;
42 new JarFile(new File("Wrong.file")); in test_ConstructorLjava_io_File()
48 new JarFile(new File(resources, jarName)); in test_ConstructorLjava_io_File()
53 new JarFile("Wrong.file"); in test_ConstructorLjava_lang_String()
60 new JarFile(fileName); in test_ConstructorLjava_lang_String()
65 new JarFile("Wrong.file", false); in test_ConstructorLjava_lang_StringZ()
72 new JarFile(fileName, true); in test_ConstructorLjava_lang_StringZ()
77 new JarFile(new File("Wrong.file"), true); in test_ConstructorLjava_io_FileZ()
83 new JarFile(new File(resources, jarName), false); in test_ConstructorLjava_io_FileZ()
88 new JarFile(new File("Wrong.file"), true, in test_ConstructorLjava_io_FileZI()
[all …]
DOldJarEntryTest.java23 import java.util.jar.JarFile;
32 private JarFile jarFile;
41 jarFile = new JarFile(new File(resources, jarName)); in setUp()
87 JarFile attrJar = null; in test_getAttributes()
92 attrJar = new JarFile(new File(resources, "Broken_manifest.jar")); in test_getAttributes()
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DJarFileFactory.java33 import java.util.jar.JarFile;
46 private static final HashMap<String, JarFile> fileCache = new HashMap<>();
49 private static final HashMap<JarFile, URL> urlCache = new HashMap<>();
59 URLConnection getConnection(JarFile jarFile) throws IOException { in getConnection()
70 public JarFile get(URL url) throws IOException { in get()
74 JarFile get(URL url, boolean useCaches) throws IOException { in get()
76 JarFile result; in get()
77 JarFile local_result; in get()
112 public void close(JarFile jarFile) { in close()
120 private JarFile getCachedJarFile(URL url) { in getCachedJarFile()
[all …]
DURLJarFile.java46 public class URLJarFile extends JarFile {
64 static JarFile getJarFile(URL url) throws IOException { in getJarFile()
68 … static JarFile getJarFile(URL url, URLJarFileCloseController closeController) throws IOException { in getJarFile()
192 private static JarFile retrieve(final URL url) throws IOException { in retrieve()
200 …private static JarFile retrieve(final URL url, final URLJarFileCloseController closeController) th… in retrieve()
215 JarFile result = null; in retrieve()
220 new PrivilegedExceptionAction<JarFile>() { in retrieve()
221 public JarFile run() throws IOException { in retrieve()
225 JarFile jarFile = new URLJarFile(tmpFile.toFile(), closeController); in retrieve()
288 public void close(JarFile jarFile); in close()
DJarURLConnection.java40 import java.util.jar.JarFile;
74 private JarFile jarFile;
88 public JarFile getJarFile() throws IOException { in getJarFile()
/libcore/ojluni/src/main/java/java/util/jar/
DJarFile.java69 class JarFile extends ZipFile { class
105 public JarFile(String name) throws IOException { in JarFile() method in JarFile
119 public JarFile(String name, boolean verify) throws IOException { in JarFile() method in JarFile
132 public JarFile(File file) throws IOException { in JarFile() method in JarFile
147 public JarFile(File file, boolean verify) throws IOException { in JarFile() method in JarFile
169 public JarFile(File file, boolean verify, int mode) throws IOException { in JarFile() method in JarFile
175 public JarFile(String name, boolean enableZipPathValidator, boolean verify) throws IOException { in JarFile() method in JarFile
181 public JarFile(File file, boolean enableZipPathValidator, boolean verify, int mode) throws in JarFile() method in JarFile
274 final Enumeration<? extends ZipEntry> e = JarFile.super.entries();
330 Manifest man = JarFile.this.getManifest(); in getAttributes()
[all …]
DJarVerifier.java148 if (uname.equals(JarFile.MANIFEST_NAME) || in beginEntry()
352 public java.security.cert.Certificate[] getCerts(JarFile jar, JarEntry entry) in getCerts()
367 public CodeSigner[] getCodeSigners(JarFile jar, JarEntry entry) in getCodeSigners()
437 if (sigFileSigners.containsKey(JarFile.MANIFEST_NAME)) { in doneWithMeta()
438 CodeSigner[] codeSigners = sigFileSigners.remove(JarFile.MANIFEST_NAME); in doneWithMeta()
439 verifiedSigners.put(JarFile.MANIFEST_NAME, codeSigners); in doneWithMeta()
701 public synchronized Enumeration<String> entryNames(JarFile jar, final CodeSource[] cs) { in entryNames()
765 public Enumeration<JarEntry> entries2(final JarFile jar, Enumeration<? extends ZipEntry> e) { in entries2()
826 private Enumeration<String> unsignedEntryNames(JarFile jar) {
879 public synchronized CodeSource[] getCodeSources(JarFile jar, URL url) {
[all …]
/libcore/luni/src/main/java/libcore/io/
DClassPathURLStreamHandler.java29 import java.util.jar.JarFile;
43 private final JarFile jarFile;
52 jarFile = new JarFile(jarFileName, enableZipPathValidator, /* verify */ true); in ClassPathURLStreamHandler()
114 private JarFile connectionJarFile;
146 public JarFile getJarFile() throws IOException { in getJarFile()
154 connectionJarFile = new JarFile(jarFile.getName()); in getJarFile()
/libcore/benchmarks/src/benchmarks/regression/
DJarFileBenchmark.java21 import java.util.jar.JarFile;
34 JarFile jf = new JarFile(f); in time()
DStringReplaceAllBenchmark.java32 BOOT_IMAGE(java.util.jar.JarFile.MANIFEST_NAME);
/libcore/ojluni/annotations/hiddenapi/java/util/jar/
DJarFile.java32 public class JarFile extends java.util.zip.ZipFile { class
34 public JarFile(java.lang.String name) throws java.io.IOException { in JarFile() method in JarFile
39 public JarFile(java.lang.String name, boolean verify) throws java.io.IOException { in JarFile() method in JarFile
44 public JarFile(java.io.File file) throws java.io.IOException { in JarFile() method in JarFile
49 public JarFile(java.io.File file, boolean verify) throws java.io.IOException { in JarFile() method in JarFile
54 public JarFile(java.io.File file, boolean verify, int mode) throws java.io.IOException { in JarFile() method in JarFile
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassLoaderTest.java27 import java.util.jar.JarFile;
142 JarFile uncachedJarFile = uncachedConnection.getJarFile(); in testUncachedJarStreamBehavior()
189 JarFile jarFile1 = urlConnection1.getJarFile(); in testResourceJarFileBehavior()
190 JarFile jarFile2 = urlConnection2.getJarFile(); in testResourceJarFileBehavior()
195 JarFile uncachedJarFile = uncachedConnection.getJarFile(); in testResourceJarFileBehavior()
229 private static boolean isJarFileClosed(JarFile jarFile) { in isJarFileClosed()
/libcore/ojluni/src/main/java/javax/crypto/
DJarVerifier.java84 JarFile jf = null; in verify()
90 new PrivilegedExceptionAction<JarFile>() { in verify()
91 public JarFile run() throws Exception { in verify()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DURLClassPath.java247 java.util.jar.JarFile getJarFile() { in getJarFile()
259 static java.util.jar.JarFile checkJar(java.util.jar.JarFile jar) in checkJar()
264 private java.util.jar.JarFile getJarFile(java.net.URL url) throws java.io.IOException { in getJarFile()
325 private java.util.jar.JarFile jar;
373 private java.util.jar.JarFile jarfile;
DJarIndex.java49 public static sun.misc.JarIndex getJarIndex(java.util.jar.JarFile jar) in getJarIndex()
55 java.util.jar.JarFile jar, sun.misc.MetaIndex metaIndex) throws java.io.IOException { in getJarIndex()
/libcore/ojluni/src/main/java/java/net/
DJarURLConnection.java29 import java.util.jar.JarFile;
228 public abstract JarFile getJarFile() throws IOException; in getJarFile()
/libcore/luni/src/test/java/libcore/dalvik/system/
DPathClassLoaderTest.java32 import java.util.jar.JarFile;
111 JarFile jarFile = new JarFile(f, true /* verify */, ZipFile.OPEN_READ); in test_classLoader_tampered_certificate_loadsOK_nullCertificates()
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidZipStressTest.java27 import java.util.jar.JarFile;
39 JarFile jarFile = new JarFile(file); in checkJarCertificates()
/libcore/luni/src/test/java/libcore/java/net/
DOldJarURLConnectionTest.java35 import java.util.jar.JarFile;
81 JarFile jf = juc.getJarFile(); in test_getCertificates()
235 JarFile jarFile1 = connection.getJarFile(); in test_setUseCaches()
239 JarFile jarFile2 = connection.getJarFile(); in test_setUseCaches()
345 public JarFile getJarFile() throws IOException { in getJarFile()
/libcore/ojluni/src/main/java/sun/misc/
DURLClassPath.java30 import java.util.jar.JarFile;
691 private JarFile jarfile; // if this points to a jar file
811 private JarFile jar;
851 JarFile getJarFile () {
902 static JarFile checkJar(JarFile jar) throws IOException {
917 private JarFile getJarFile(URL url) throws IOException {
924 return checkJar(new JarFile(p.getPath()));
928 JarFile jarFile = ((JarURLConnection)uc).getJarFile();
/libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/
Dunsupported_new_apis.txt172 java/util/jar/JarFile#<init>(Ljava/io/File;ZILjava/lang/Runtime$Version;)V
173 java/util/jar/JarFile#baseVersion()Ljava/lang/Runtime$Version;
174 java/util/jar/JarFile#getVersion()Ljava/lang/Runtime$Version;
175 java/util/jar/JarFile#isMultiRelease()Z
176 java/util/jar/JarFile#runtimeVersion()Ljava/lang/Runtime$Version;
177 java/util/jar/JarFile#versionedStream()Ljava/util/stream/Stream;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DJarURLConnectionTest.java31 import java.util.jar.JarFile;
166 JarFile jarFile1 = connection.getJarFile(); in test_setUseCaches()
172 JarFile jarFile2 = connection.getJarFile(); in test_setUseCaches()

12