Package generic.jar
Class JarResource
- java.lang.Object
-
- generic.jar.JarResource
-
-
Constructor Summary
Constructors Constructor Description JarResource(JarResource parent, java.lang.String path)JarResource(java.io.File jarFile, JarEntryFilter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanWrite()booleandelete()booleanequals(java.lang.Object obj)booleanexists()java.lang.StringgetAbsolutePath()java.lang.StringgetCanonicalPath()ResourcegetCanonicalResource()java.io.FilegetFile()java.io.FilegetFileSystemRoot()java.io.InputStreamgetInputStream()java.lang.StringgetName()java.io.OutputStreamgetOutputStream()ResourcegetParent()ResourcegetResource(java.lang.String childPath)java.io.FilegetResourceAsFile(ResourceFile resourceFile)inthashCode()booleanisDirectory()booleanisFile()longlastModified()longlength()ResourceFile[]listFiles()ResourceFile[]listFiles(ResourceFileFilter filter)booleanmkdir()java.lang.StringtoString()java.net.URItoURI()java.net.URLtoURL()
-
-
-
Constructor Detail
-
JarResource
public JarResource(java.io.File jarFile, JarEntryFilter filter) throws java.io.IOException- Throws:
java.io.IOException
-
JarResource
public JarResource(JarResource parent, java.lang.String path)
-
-
Method Detail
-
getAbsolutePath
public java.lang.String getAbsolutePath()
- Specified by:
getAbsolutePathin interfaceResource
-
toURL
public java.net.URL toURL() throws java.net.MalformedURLException
-
listFiles
public ResourceFile[] listFiles()
-
listFiles
public ResourceFile[] listFiles(ResourceFileFilter filter)
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfaceResource
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Specified by:
getInputStreamin interfaceResource- Throws:
java.io.IOException
-
lastModified
public long lastModified()
- Specified by:
lastModifiedin interfaceResource
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.FileNotFoundException- Specified by:
getOutputStreamin interfaceResource- Throws:
java.io.FileNotFoundException
-
getResource
public Resource getResource(java.lang.String childPath)
- Specified by:
getResourcein interfaceResource
-
getResourceAsFile
public java.io.File getResourceAsFile(ResourceFile resourceFile)
- Specified by:
getResourceAsFilein interfaceResource
-
getCanonicalPath
public java.lang.String getCanonicalPath() throws java.io.IOException- Specified by:
getCanonicalPathin interfaceResource- Throws:
java.io.IOException
-
getCanonicalResource
public Resource getCanonicalResource()
- Specified by:
getCanonicalResourcein interfaceResource
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getFileSystemRoot
public java.io.File getFileSystemRoot()
- Specified by:
getFileSystemRootin interfaceResource
-
-