Home | History | Annotate | Download | only in io

Lines Matching full:jarfile

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 it
97 static ZipEntry findEntryWithDirectoryFallback(JarFile jarFile, String entryName) {
98 ZipEntry entry = jarFile.getEntry(entryName);
100 entry = jarFile.getEntry(entryName + "/");
106 // The JarFile instance can be shared across URLConnections and should not be closed when it is:
112 // JarFile.
119 // Most developers are not expecting to deal with the lifecycle of the underlying JarFile object
122 private JarFile connectionJarFile;
129 * Indicates the behavior of the {@link #jarFile}. If true, the reference is shared and should
142 this.jarEntry = findEntryWithDirectoryFallback(ClassPathURLStreamHandler.this.jarFile,
147 + ", zipfile=" + jarFile.getName());
155 public JarFile getJarFile() throws IOException {
161 connectionJarFile = jarFile;
163 connectionJarFile = new JarFile(jarFile.getName());
177 return jarInput = new FilterInputStream(jarFile.getInputStream(jarEntry)) {
182 // URLConnection and any JarFile returned from getJarFile(). If the jar file is cached