Home
last modified time | relevance | path

Searched refs:jarFile (Results 1 – 25 of 30) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/reflect/
DClassPathTest.java233 File jarFile = File.createTempFile("with_circular_class_path", ".jar"); in testScan_classPathCycle() local
235 writeSelfReferencingJarFile(jarFile, "test.txt"); in testScan_classPathCycle()
237 scanner.scan(jarFile.toURI(), ClassPathTest.class.getClassLoader()); in testScan_classPathCycle()
240 jarFile.delete(); in testScan_classPathCycle()
280 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_noClassPath() local
281 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifest(""))) in testGetClassPathFromManifest_noClassPath()
286 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_emptyClassPath() local
287 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifestClasspath(""))) in testGetClassPathFromManifest_emptyClassPath()
292 File jarFile = new File("base.jar"); in testGetClassPathFromManifest_badClassPath() local
294 assertThat(ClassPath.Scanner.getClassPathFromManifest(jarFile, manifest)) in testGetClassPathFromManifest_badClassPath()
[all …]
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/
DJarTypeSolver.java94 JarFile jarFile = new JarFile(pathToJar); in addPathToJar() local
96 Enumeration<JarEntry> e = jarFile.entries(); in addPathToJar()
101 classpathElements.put(name, new ClasspathElement(jarFile, entry, name)); in addPathToJar()
151 private JarFile jarFile; field in JarTypeSolver.ClasspathElement
155 ClasspathElement(JarFile jarFile, JarEntry entry, String path) { in ClasspathElement() argument
156 this.jarFile = jarFile; in ClasspathElement()
162 try (InputStream is = jarFile.getInputStream(entry)) { in toCtClass()
DAarTypeSolver.java38 JarFile jarFile = new JarFile(aarFile); in AarTypeSolver() local
39 ZipEntry classesJarEntry = jarFile.getEntry("classes.jar"); in AarTypeSolver()
43 delegate = new JarTypeSolver(jarFile.getInputStream(classesJarEntry)); in AarTypeSolver()
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/
DJarInstrumentor.java53 JarFile jarFile = new JarFile(sourceFile); in instrumentJar() local
58 return JarInstrumentor.getClassBytes(className, jarFile); in instrumentJar()
69 Enumeration<JarEntry> entries = jarFile.entries(); in instrumentJar()
86 byte[] classBytes = getClassBytes(className, jarFile); in instrumentJar()
101 Util.copy(jarFile.getInputStream(jarEntry), jarOut); in instrumentJar()
128 private static byte[] getClassBytes(String className, JarFile jarFile) in getClassBytes() argument
131 ZipEntry entry = jarFile.getEntry(classFilename); in getClassBytes()
137 inputStream = jarFile.getInputStream(entry); in getClassBytes()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DJarFinder.java142 JarFile jarFile; in scanJar() local
144 jarFile = new JarFile(file); in scanJar()
151 for (URI uri : getClassPathFromManifest(file, jarFile.getManifest())) { in scanJar()
156 jarFile.close(); in scanJar()
169 File jarFile, @Nullable Manifest manifest) { in getClassPathFromManifest() argument
180 uri = getClassPathEntry(jarFile, path); in getClassPathFromManifest()
199 @VisibleForTesting static URI getClassPathEntry(File jarFile, String path) in getClassPathEntry() argument
204 : new File(jarFile.getParentFile(), path.replace('/', File.separatorChar)).toURI(); in getClassPathEntry()
DAllocationInstrument.java178 JarFile jarFile = null; in findAllocationInstrumentJarOnClasspath() local
180 jarFile = new JarFile(file); in findAllocationInstrumentJarOnClasspath()
181 Manifest manifest = jarFile.getManifest(); in findAllocationInstrumentJarOnClasspath()
188 if (jarFile != null) { in findAllocationInstrumentJarOnClasspath()
189 jarFile.close(); in findAllocationInstrumentJarOnClasspath()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DCompatibilityTest.java171 JarFile jarFile = null; in getJarList() local
180 jarFile = conn.getJarFile(); in getJarList()
181 Enumeration entries = jarFile.entries(); in getJarList()
189 … SerializableTestUtility.copyStreamBytes(jarFile.getInputStream(entry))); in getJarList()
196 if (jarFile != null) { in getJarList()
197 jarFile.close(); in getJarList()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DCompatibilityTest.java168 JarFile jarFile = null; in getJarList() local
177 jarFile = conn.getJarFile(); in getJarList()
178 Enumeration entries = jarFile.entries(); in getJarList()
186 … SerializableTestUtility.copyStreamBytes(jarFile.getInputStream(entry))); in getJarList()
193 if (jarFile != null) { in getJarList()
194 jarFile.close(); in getJarList()
/external/guava/guava/src/com/google/common/reflect/
DClassPath.java367 JarFile jarFile; in scanJar() local
369 jarFile = new JarFile(file); in scanJar()
375 for (URI uri : getClassPathFromManifest(file, jarFile.getManifest())) { in scanJar()
378 Enumeration<JarEntry> entries = jarFile.entries(); in scanJar()
388 jarFile.close(); in scanJar()
400 File jarFile, @Nullable Manifest manifest) { in getClassPathFromManifest() argument
411 uri = getClassPathEntry(jarFile, path); in getClassPathFromManifest()
429 @VisibleForTesting static URI getClassPathEntry(File jarFile, String path) in getClassPathEntry() argument
435 return new File(jarFile.getParentFile(), path.replace('/', File.separatorChar)).toURI(); in getClassPathEntry()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DFs.java94 private final JarFile jarFile; field in Fs.JarFs
99 jarFile = new JarFile(file); in JarFs()
111 Enumeration<JarEntry> entries = jarFile.entries(); in JarFs()
206 return new BufferedInputStream(jarFile.getInputStream(jarEntryMap.get(path))); in getInputStream()
210 return Util.readBytes(jarFile.getInputStream(jarEntryMap.get(path))); in getBytes()
229 return jarFile.getEntry(path).getSize(); in length()
246 return jarFile.getName(); in getJarFileName()
/external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
DJvmtiAgent.java86 File jarFile = File.createTempFile("mockito-boot", ".jar"); in appendToBootstrapClassLoaderSearch() local
87 jarFile.deleteOnExit(); in appendToBootstrapClassLoaderSearch()
90 try (OutputStream os = new FileOutputStream(jarFile)) { in appendToBootstrapClassLoaderSearch()
101 nativeAppendToBootstrapClassLoaderSearch(jarFile.getAbsolutePath()); in appendToBootstrapClassLoaderSearch()
/external/turbine/java/com/google/turbine/deps/
DDependencies.java60 String jarFile = info.jarFile(); in collectDeps() local
65 jars.add(jarFile); in collectDeps()
67 for (String jarFile : jars) { in collectDeps()
70 .setPath(jarFile) in collectDeps()
/external/apache-commons-bcel/src/examples/
DPackage.java185 JarOutputStream jarFile = new JarOutputStream(new FileOutputStream(defaultJar)); in go() local
186 jarFile.setLevel(5); // use compression in go()
193 jarFile.putNextEntry(zipEntry); in go()
194 jarFile.write(bytes, 0, length); in go()
197 jarFile.close(); in go()
/external/objenesis/tck/src/main/java/org/objenesis/tck/search/
DClassEnumerator.java59 JarFile jarFile; in processJarfile() local
61 jarFile = new JarFile(jarPath); in processJarfile()
65 Enumeration<JarEntry> entries = jarFile.entries(); in processJarfile()
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/validator/
DSdkStore.java120 private final JarFile jarFile; field in SdkStore.Sdk
127 this.jarFile = ensureJar(); in Sdk()
242 try (InputStream inputStream = jarFile.getInputStream(jarFile.getJarEntry("build.prop"))) { in readSdkInt()
291 ZipEntry entry = jarFile.getEntry(classFileName); in loadClassNode()
295 try (InputStream inputStream = jarFile.getInputStream(entry)) { in loadClassNode()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/pack200/
DPack200Utils.java136 JarFile jarFile = new JarFile(from)) { in normalize()
139 packer.pack(jarFile, fos); in normalize()
/external/testng/src/test/java/test/jarpackages/
DJarPackagesTest.java13 private TestListenerAdapter init(String jarFile) { in init() argument
19 String finalPath = path + jarFile; in init()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_resolution_typesolvers_JarTypeSolver.txt5 Line 67) jarFile.entries() ==> java.util.jar.JarFile.entries()
13 …Line 72) classpathElements.put(name, new ClasspathElement(jarFile, entry, name)) ==> java.util.Map…
30 …Line 133) jarFile.getInputStream(entry) ==> java.util.jar.JarFile.getInputStream(java.util.zip.Zip…
/external/turbine/java/com/google/turbine/binder/bytecode/
DBytecodeBoundClass.java76 private final String jarFile; field in BytecodeBoundClass
82 String jarFile) { in BytecodeBoundClass() argument
85 this.jarFile = jarFile; in BytecodeBoundClass()
91 ClassFile cf = ClassReader.read(jarFile + "!" + sym.binaryName(), bytes.get()); in BytecodeBoundClass()
593 public String jarFile() {
594 return jarFile;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DURLHandler.java192 JarFile jarFile; field in URLHandler.JarURLHandler
217 jarFile = conn.getJarFile(); in JarURLHandler()
228 Enumeration<JarEntry> entries = jarFile.entries(); in guide()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DURLHandler.java196 JarFile jarFile; field in URLHandler.JarURLHandler
221 jarFile = conn.getJarFile(); in JarURLHandler()
232 Enumeration<JarEntry> entries = jarFile.entries(); in guide()
/external/desugar/test/java/com/google/devtools/build/android/desugar/
DByteCodeTypePrinter.java41 try (ZipFile jarFile = new ZipFile(inputJarFile.toFile())) { in printClassesWithTypes() argument
42 for (ZipEntry entry : getSortedClassEntriess(jarFile)) { in printClassesWithTypes()
43 try (InputStream classStream = jarFile.getInputStream(entry)) { in printClassesWithTypes()
/external/turbine/javatests/com/google/turbine/main/
DMainTest.java185 try (JarFile jarFile = new JarFile(output.toFile())) { in testManifest() argument
186 Manifest manifest = jarFile.getManifest(); in testManifest()
190 assertThat(jarFile.getEntry(JarFile.MANIFEST_NAME).getLastModifiedTime().toInstant()) in testManifest()
/external/vogar/src/vogar/
DClassFileIndex.java157 JarFile jarFile = new JarFile(file);
158 for (Enumeration<JarEntry> e = jarFile.entries(); e.hasMoreElements(); ) {
/external/vogar/src/vogar/target/
DClassPathScanner.java163 private Set<String> getJarEntries(File jarFile) throws IOException { in getJarEntries() argument
165 ZipFile zipFile = new ZipFile(jarFile); in getJarEntries()

12