| 
 | Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tomcat.util.scan.UrlJar
public class UrlJar
Implementation of Jar that is optimised for non-file based JAR URLs
 (e.g. JNDI based URLs of the form jar:jndi:...).
| Constructor Summary | |
|---|---|
| UrlJar(URL url) | |
| Method Summary | |
|---|---|
|  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 InputStreamfor 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. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public UrlJar(URL url)
       throws IOException
IOException| Method Detail | 
|---|
public boolean entryExists(String name)
                    throws IOException
Jar
entryExists in interface Jarname - Entry to look for
true if the specified entry exists else
               false
IOException
public 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 for
InputStream for the specified entry or null if
              the entry does not exist
IOExceptionpublic void close()
Jar
close in interface Jarpublic void nextEntry()
Jar
nextEntry in interface Jarpublic String getEntryName()
Jar
getEntryName in interface Jar
public InputStream getEntryInputStream()
                                throws IOException
Jar
getEntryInputStream in interface JarIOException - If the stream cannot be obtained
public void reset()
           throws IOException
Jar
reset in interface JarIOException - If the pointer cannot be reset| 
 | Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||