Class JarEntryResource

java.lang.Object
org.jboss.modules.JarEntryResource
All Implemented Interfaces:
Resource

final class JarEntryResource extends Object implements Resource
  • Field Details

    • jarFile

      private final JarFile jarFile
    • entry

      private final JarEntry entry
    • entryName

      private final String entryName
    • resourceURL

      private final URL resourceURL
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from interface: Resource
      Get the relative resource name.
      Specified by:
      getName in interface Resource
      Returns:
      the name
    • getURL

      public URL getURL()
      Description copied from interface: Resource
      Get the complete URL of this resource.
      Specified by:
      getURL in interface Resource
      Returns:
      the URL
    • openStream

      public InputStream openStream() throws IOException
      Description copied from interface: Resource
      Open an input stream to this resource.
      Specified by:
      openStream in interface Resource
      Returns:
      the stream
      Throws:
      IOException - if an I/O error occurs
    • getSize

      public long getSize()
      Description copied from interface: Resource
      Get the size of the resource, if known.
      Specified by:
      getSize in interface Resource
      Returns:
      the size, or 0L if unknown