UrlJar (Apache Tomcat 11.0.21 API Documentation)
Description: declaration: package: org.apache.tomcat.util.scan, class: UrlJar

# Class UrlJar

java.lang.Object
org.apache.tomcat.util.scan.AbstractInputStreamJar
org.apache.tomcat.util.scan.UrlJar

All Implemented Interfaces:
  `AutoCloseable, Jar`

public class UrlJar extends AbstractInputStreamJar
Implementation of `Jar` that is optimised for non-file based JAR URLs.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `UrlJar(URL jarFileURL)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  Close any resources associated with this JAR.
  `protected NonClosingJarInputStream`
  `createJarInputStream()`

  ### Methods inherited from class AbstractInputStreamJar

  `closeStream, exists, getEntryInputStream, getEntryName, getInputStream, getJarFileURL, getLastModified, getManifest, getURL, nextEntry, reset`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### UrlJar

    public UrlJar(URL jarFileURL)

- ## Method Details

  - ### close

    public void close()
    Description copied from interface: `Jar`
    Close any resources associated with this JAR.

  - ### createJarInputStream

    protected NonClosingJarInputStream createJarInputStream() throws IOException
    Specified by:
      `createJarInputStream` in class `AbstractInputStreamJar`
    Throws:
      `IOException`