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 ofJar
that is optimised for non-file based JAR URLs.
-
-
Constructor Summary
Constructors Constructor Description UrlJar(java.net.URL jarFileURL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close any resources associated with this JAR.protected NonClosingJarInputStream
createJarInputStream()
-
Methods inherited from class org.apache.tomcat.util.scan.AbstractInputStreamJar
closeStream, exists, getEntryInputStream, getEntryName, getInputStream, getJarFileURL, getLastModified, getManifest, getURL, nextEntry, reset
-
-
-
-
Method Detail
-
close
public void close()
Description copied from interface:Jar
Close any resources associated with this JAR.
-
createJarInputStream
protected NonClosingJarInputStream createJarInputStream() throws java.io.IOException
- Specified by:
createJarInputStream
in classAbstractInputStreamJar
- Throws:
java.io.IOException
-
-