Jar that is optimised for file based JAR URLs that
refer directly to a JAR file (e.g URLs of the form jar:file: ... .jar!/ or
file:... .jar).
| Modifier and Type | Field and Description |
|---|---|
| private Enumeration | |
| private JarEntry | |
| private Set | |
| private final JarFile | |
| private final URL | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | exists(String
Entry to look for name)Implements org. Determine if the given resource in present in the JAR. |
| public InputStream | getEntryInputStream()
Implements org. Obtains the input stream for the current entry. |
| public String | |
| public InputStream | getInputStream(String
Entry to obtain an name)InputStream forImplements org. Obtain an |
| public URL | |
| public long | getLastModified(String
Entry to obtain the modification time for name)Implements org. Obtain the last modified time for the given resource in the JAR. |
| public Manifest | |
| public String | getURL(String
The entry to generate the URL for entry)Implements org. Obtain, in String form, the URL for an entry in this JAR. |
| public void | nextEntry()
Implements org. Moves the internal pointer to the next entry in the JAR. |
| public void | reset()
Implements org. Resets the internal pointer used to track JAR entries to the beginning of the JAR. |
| entries | back to summary |
|---|---|
| private Enumeration<JarEntry> entries | |
| entry | back to summary |
|---|---|
| private JarEntry entry | |
| entryNamesSeen | back to summary |
|---|---|
| private Set<String> entryNamesSeen | |
| jarFile | back to summary |
|---|---|
| private final JarFile jarFile | |
| jarFileURL | back to summary |
|---|---|
| private final URL jarFileURL | |
| multiRelease | back to summary |
|---|---|
| private final boolean multiRelease | |
| JarFileUrlJar | back to summary |
|---|---|
| public JarFileUrlJar(URL url, boolean startsWithJar) throws IOException | |
| close | back to summary |
|---|---|
| public void close() Implements org. Doc from org. Close any resources associated with this JAR.
| |
| exists | back to summary |
|---|---|
| public boolean exists(String name) throws IOException Implements org. Doc from org. Determine if the given resource in present in the JAR.
| |
| getEntryInputStream | back to summary |
|---|---|
| public InputStream getEntryInputStream() throws IOException Implements org. Doc from org. Obtains the input stream for the current entry.
| |
| getEntryName | back to summary |
|---|---|
| public String getEntryName() Implements org. Doc from org. Obtains the name of the current entry. | |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream(String name) throws IOException Implements org. Doc from org. Obtain an
| |
| getJarFileURL | back to summary |
|---|---|
| public URL getJarFileURL() Implements org.
| |
| getLastModified | back to summary |
|---|---|
| public long getLastModified(String name) throws IOException Implements org. Doc from org. Obtain the last modified time for the given resource in the JAR.
| |
| getManifest | back to summary |
|---|---|
| public Manifest getManifest() throws IOException Implements org. Doc from org. Obtain the manifest for the JAR file.
| |
| getURL | back to summary |
|---|---|
| public String getURL(String entry) Implements org. Doc from org. Obtain, in String form, the URL for an entry in this JAR. Note that for
JARs nested in WAR files, the Tomcat specific war:file:... form will not
be used, rather the jar:jar:file:... form (that the JRE does not
understand will be used). Note that this means that any code using these
URLs will need to understand the jar:jar:file:... form and use the
| |
| nextEntry | back to summary |
|---|---|
| public void nextEntry() Implements org. Doc from org. Moves the internal pointer to the next entry in the JAR.
| |
| reset | back to summary |
|---|---|
| public void reset() throws IOException Implements org. Doc from org. Resets the internal pointer used to track JAR entries to the beginning of the JAR.
| |