Package generic.jar

# Class JarResource

java.lang.Object
generic.jar.JarResource

All Implemented Interfaces:
  `Resource`

public class JarResource extends Object implements Resource

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JarResource(JarResource parent, String path)`
  `JarResource(File jarFile, JarEntryFilter filter)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `canWrite()`
  `boolean`
  `delete()`
  `boolean`
  `equals(Object obj)`
  `boolean`
  `exists()`
  `String`
  `getAbsolutePath()`
  `String`
  `getCanonicalPath()`
  `Resource`
  `getCanonicalResource()`
  `File`
  `getFile()`
  `File`
  `getFileSystemRoot()`
  `InputStream`
  `getInputStream()`
  `String`
  `getName()`
  `OutputStream`
  `getOutputStream()`
  `Resource`
  `getParent()`
  `Resource`
  `getResource(String childPath)`
  `File`
  `getResourceAsFile(ResourceFile resourceFile)`
  `int`
  `hashCode()`
  `boolean`
  `isDirectory()`
  `boolean`
  `isFile()`
  `long`
  `lastModified()`
  `long`
  `length()`
  `ResourceFile[]`
  `listFiles()`
  `ResourceFile[]`
  `listFiles(ResourceFileFilter filter)`
  `boolean`
  `mkdir()`
  `String`
  `toString()`
  `URI`
  `toURI()`
  `URL`
  `toURL()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### JarResource

    public JarResource(File jarFile, JarEntryFilter filter) throws IOException
    Throws:
      `IOException`

  - ### JarResource

    public JarResource(JarResource parent, String path)

- ## Method Details

  - ### getAbsolutePath

    public String getAbsolutePath()
    Specified by:
      `getAbsolutePath` in interface `Resource`

  - ### toURL

    public URL toURL() throws MalformedURLException
    Specified by:
      `toURL` in interface `Resource`
    Throws:
      `MalformedURLException`

  - ### toURI

    public URI toURI()
    Specified by:
      `toURI` in interface `Resource`

  - ### listFiles

    public ResourceFile[] listFiles()
    Specified by:
      `listFiles` in interface `Resource`

  - ### listFiles

    public ResourceFile[] listFiles(ResourceFileFilter filter)
    Specified by:
      `listFiles` in interface `Resource`

  - ### getName

    public String getName()
    Specified by:
      `getName` in interface `Resource`

  - ### isDirectory

    public boolean isDirectory()
    Specified by:
      `isDirectory` in interface `Resource`

  - ### isFile

    public boolean isFile()
    Specified by:
      `isFile` in interface `Resource`

  - ### getInputStream

    public InputStream getInputStream() throws IOException
    Specified by:
      `getInputStream` in interface `Resource`
    Throws:
      `IOException`

  - ### getParent

    public Resource getParent()
    Specified by:
      `getParent` in interface `Resource`

  - ### lastModified

    public long lastModified()
    Specified by:
      `lastModified` in interface `Resource`

  - ### delete

    public boolean delete()
    Specified by:
      `delete` in interface `Resource`

  - ### exists

    public boolean exists()
    Specified by:
      `exists` in interface `Resource`

  - ### getOutputStream

    public OutputStream getOutputStream() throws FileNotFoundException
    Specified by:
      `getOutputStream` in interface `Resource`
    Throws:
      `FileNotFoundException`

  - ### getResource

    public Resource getResource(String childPath)
    Specified by:
      `getResource` in interface `Resource`

  - ### getFile

    public File getFile()
    Specified by:
      `getFile` in interface `Resource`

  - ### getResourceAsFile

    public File getResourceAsFile(ResourceFile resourceFile)
    Specified by:
      `getResourceAsFile` in interface `Resource`

  - ### length

    public long length()
    Specified by:
      `length` in interface `Resource`

  - ### getCanonicalPath

    public String getCanonicalPath() throws IOException
    Specified by:
      `getCanonicalPath` in interface `Resource`
    Throws:
      `IOException`

  - ### getCanonicalResource

    public Resource getCanonicalResource()
    Specified by:
      `getCanonicalResource` in interface `Resource`

  - ### canWrite

    public boolean canWrite()
    Specified by:
      `canWrite` in interface `Resource`

  - ### mkdir

    public boolean mkdir()
    Specified by:
      `mkdir` in interface `Resource`

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### getFileSystemRoot

    public File getFileSystemRoot()
    Specified by:
      `getFileSystemRoot` in interface `Resource`