| Constructor and Description |
|---|
FileUrlJar(URL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close any resources associated with this JAR.
|
boolean |
entryExists(String name)
Determines if a specific entry exists within the JAR.
|
InputStream |
getEntryInputStream()
Obtains the input stream for the current entry.
|
String |
getEntryName()
Obtains the name of the current entry.
|
InputStream |
getInputStream(String name)
Obtain an
InputStream for a given entry in a JAR. |
void |
nextEntry()
Moves the internal pointer to the next entry in the JAR.
|
void |
reset()
Resets the internal pointer used to track JAR entries to the beginning of
the JAR.
|
public FileUrlJar(URL url) throws IOException
IOExceptionpublic boolean entryExists(String name)
JarentryExists in interface Jarname - Entry to look fortrue if the specified entry exists else
falsepublic InputStream getInputStream(String name) throws IOException
JarInputStream for a given entry in a JAR. The caller is
responsible for closing the stream.getInputStream in interface Jarname - Entry to obtain an InputStream forInputStream for the specified entry or null if
the entry does not existIOExceptionpublic void close()
Jarpublic void nextEntry()
Jarpublic String getEntryName()
JargetEntryName in interface Jarpublic InputStream getEntryInputStream() throws IOException
JargetEntryInputStream in interface JarIOException - If the stream cannot be obtainedpublic void reset()
throws IOException
Jarreset in interface JarIOException - If the pointer cannot be resetCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.