Class UrlJar
java.lang.Object
org.apache.tomcat.util.scan.AbstractInputStreamJar
org.apache.tomcat.util.scan.UrlJar
- All Implemented Interfaces:
AutoCloseable, Jar
Implementation of
Jar that is optimised for non-file based JAR URLs.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close any resources associated with this JAR.protected NonClosingJarInputStreamCreates a newNonClosingJarInputStreamfor reading this JAR.Methods inherited from class AbstractInputStreamJar
closeStream, exists, getEntryInputStream, getEntryName, getInputStream, getJarFileURL, getLastModified, getManifest, getURL, nextEntry, resetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Jar
getLastModified
-
Constructor Details
-
UrlJar
Constructs a new UrlJar for the given JAR URL.- Parameters:
jarFileURL- the JAR file URL
-
-
Method Details
-
close
public void close()Description copied from interface:JarClose any resources associated with this JAR. -
createJarInputStream
Description copied from class:AbstractInputStreamJarCreates a newNonClosingJarInputStreamfor reading this JAR.- Specified by:
createJarInputStreamin classAbstractInputStreamJar- Returns:
- a new
NonClosingJarInputStream - Throws:
IOException- If an I/O error occurs while creating the input stream
-