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