HomeSort by relevance Sort by last modified time
    Searched refs:JarFile (Results 1 - 25 of 79) sorted by null

1 2 3 4

  /libcore/luni/src/test/java/libcore/java/util/jar/
OldJarFileTest.java 23 import java.util.jar.JarFile;
42 new JarFile(new File("Wrong.file"));
48 new JarFile(new File(resources, jarName));
53 new JarFile("Wrong.file");
60 new JarFile(fileName);
65 new JarFile("Wrong.file", false);
72 new JarFile(fileName, true);
77 new JarFile(new File("Wrong.file"), true);
83 new JarFile(new File(resources, jarName), false);
88 new JarFile(new File("Wrong.file"), true
    [all...]
OldJarEntryTest.java 23 import java.util.jar.JarFile;
32 private JarFile jarFile;
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)
    [all...]
  /libcore/benchmarks/src/benchmarks/regression/
JarFileBenchmark.java 21 import java.util.jar.JarFile;
34 JarFile jf = new JarFile(f);
  /libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
JarFileFactory.java 33 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 {
62 u = urlCache.get(jarFile);
70 public JarFile get(URL url) throws IOException {
74 JarFile get(URL url, boolean useCaches) throws IOException {
76 JarFile result;
77 JarFile local_result
    [all...]
URLJarFileCallBack.java 38 public JarFile retrieve (URL url) throws IOException;
URLJarFile.java 42 /* URL jar file is a common JarFile subtype used for JarURLConnection */
43 public class URLJarFile extends JarFile {
60 static JarFile getJarFile(URL url) throws IOException {
64 static JarFile getJarFile(URL url, URLJarFileCloseController closeController) throws IOException {
169 private static JarFile retrieve(final URL url) throws IOException {
177 private static JarFile retrieve(final URL url, final URLJarFileCloseController closeController) throws IOException {
196 JarFile jarFile = new URLJarFile(tmpFile.toURL(), closeController);
197 return jarFile;
261 public void close(JarFile jarFile)
    [all...]
JarURLConnection.java 40 import java.util.jar.JarFile;
74 private JarFile jarFile;
88 public JarFile getJarFile() throws IOException {
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)
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
JarFileTest.java 50 import java.util.jar.JarFile;
159 * java.util.jar.JarFile#JarFile(java.io.File)
163 JarFile jarFile = new JarFile(new File("Wrong.file"));
171 JarFile jarFile = new JarFile(new File(resources, jarName));
178 * java.util.jar.JarFile#JarFile(java.lang.String
    [all...]
JarEntryTest.java 26 import java.util.jar.JarFile;
37 private JarFile jarFile;
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)
    [all...]
  /external/doclava/src/com/google/doclava/
JarUtils.java 26 import java.util.jar.JarFile;
33 public static JarFile jarForClass(Class<?> clazz, JarFile defaultJar) {
45 return new JarFile(url.substring(JAR_URI_PREFIX.length(), bang));
57 public static void copyResourcesToDirectory(JarFile fromJar, String jarDir, String destDir)
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
SecureClassLoader2Test.java 29 import java.util.jar.JarFile;
64 JarFile jar = new JarFile(file);
  /external/jarjar/src/main/com/tonicsystems/jarjar/util/
StandaloneJarProcessor.java 20 import java.util.jar.JarFile;
31 JarFile in = new JarFile(from);
  /packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
JarUtils.java 29 import java.util.jar.JarFile;
36 public static JarFile getJarFile(final Class<?> mainClass) {
48 return new JarFile(URLDecoder.decode(jarPath, "UTF-8"));
63 public static ArrayList<String> getEntryNameListing(final JarFile jar, final JarFilter filter) {
79 public static ArrayList<String> getEntryNameListing(final JarFile jar,
MakeKeyboardText.java 22 import java.util.jar.JarFile;
61 final JarFile jar = JarUtils.getJarFile(MakeKeyboardText.class);
  /libcore/luni/src/main/java/libcore/io/
ClassPathURLStreamHandler.java 30 import java.util.jar.JarFile;
36 * A {@link URLStreamHandler} for a specific class path {@link JarFile}. This class avoids the need
44 private final JarFile jarFile;
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 i
    [all...]
  /libcore/ojluni/src/main/java/javax/crypto/
JarVerifier.java 84 JarFile jf = null;
87 // Get a link to the Jarfile to search.
89 jf = (JarFile)
  /libcore/ojluni/src/main/java/java/util/jar/
JarFile.java 46 * The <code>JarFile</code> class is used to read the contents of a jar file
64 class JarFile extends ZipFile {
89 * Creates a new <code>JarFile</code> to read from the specified
90 * file <code>name</code>. The <code>JarFile</code> will be verified if
97 public JarFile(String name) throws IOException {
102 * Creates a new <code>JarFile</code> to read from the specified
111 public JarFile(String name, boolean verify) throws IOException {
116 * Creates a new <code>JarFile</code> to read from the specified
117 * <code>File</code> object. The <code>JarFile</code> will be verified if
124 public JarFile(File file) throws IOException
    [all...]
  /external/jacoco/org.jacoco.core.test/src/org/jacoco/core/runtime/
ModifiedSystemClassRuntimeTest.java 25 import java.util.jar.JarFile;
117 public void appendToBootstrapClassLoaderSearch(JarFile jarfile) {
122 public void appendToSystemClassLoaderSearch(JarFile jarfile) {
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/bytecode/
ClassCache.java 13 import java.util.jar.JarFile;
25 JarFile cacheFile;
27 cacheFile = new JarFile(cacheJarFile);
74 private void readEntries(JarFile cacheFile) {
  /libcore/ojluni/src/main/java/java/net/
JarURLConnection.java 29 import java.util.jar.JarFile;
98 * to refer to a JarFile.
133 * @see java.util.jar.JarFile
221 public abstract JarFile getJarFile() throws IOException;
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
ClassLoaderTest.java 27 import java.util.jar.JarFile;
142 JarFile uncachedJarFile = uncachedConnection.getJarFile();
149 // Closing the stream closes the JarFile.
189 JarFile jarFile1 = urlConnection1.getJarFile();
190 JarFile jarFile2 = urlConnection2.getJarFile();
191 // Note: This implies nobody should ever call JarFile.close() when caching is enabled.
195 JarFile uncachedJarFile = uncachedConnection.getJarFile();
229 private static boolean isJarFileClosed(JarFile jarFile) {
230 // Indirectly detect that the JarFile has been closed
    [all...]
  /cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/
JarHostTest.java 42 import java.util.jar.JarFile;
95 JarFile jarFile = null;
98 jarFile = new JarFile(file);
99 Enumeration<JarEntry> e = jarFile.entries();
132 if (jarFile != null) {
134 jarFile.close();
  /external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
TestHelper_ClassLoader.java 25 import java.util.jar.JarFile;
154 JarFile theJar = null;
156 theJar = new JarFile(jarfileName);
  /libcore/luni/src/test/java/libcore/dalvik/system/
PathClassLoaderTest.java 29 import java.util.jar.JarFile;
104 JarFile jarFile = new JarFile(f, true /* verify */, ZipFile.OPEN_READ);
106 JarEntry signedEntry = (JarEntry) jarFile.getEntry(signedEntryName);
112 jarFile.close();
  /libcore/luni/src/test/java/libcore/java/util/zip/
OldAndroidZipStressTest.java 27 import java.util.jar.JarFile;
39 JarFile jarFile = new JarFile(file);
40 JarEntry je = jarFile.getJarEntry("AndroidManifest.xml");
46 InputStream is = jarFile.getInputStream(je);

Completed in 1812 milliseconds

1 2 3 4