Package generic.jar
Class JarResource
java.lang.Object
generic.jar.JarResource
- All Implemented Interfaces:
Resource
-
Constructor Summary
ConstructorDescriptionJarResource
(JarResource parent, String path) JarResource
(File jarFile, JarEntryFilter filter) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canWrite()
boolean
delete()
boolean
boolean
exists()
getFile()
getName()
getResource
(String childPath) getResourceAsFile
(ResourceFile resourceFile) int
hashCode()
boolean
boolean
isFile()
long
long
length()
listFiles
(ResourceFileFilter filter) boolean
mkdir()
toString()
toURI()
toURL()
-
Constructor Details
-
JarResource
- Throws:
IOException
-
JarResource
-
-
Method Details
-
getAbsolutePath
- Specified by:
getAbsolutePath
in interfaceResource
-
toURL
- Specified by:
toURL
in interfaceResource
- Throws:
MalformedURLException
-
toURI
-
listFiles
-
listFiles
-
getName
-
isDirectory
public boolean isDirectory()- Specified by:
isDirectory
in interfaceResource
-
isFile
public boolean isFile() -
getInputStream
- Specified by:
getInputStream
in interfaceResource
- Throws:
IOException
-
getParent
-
lastModified
public long lastModified()- Specified by:
lastModified
in interfaceResource
-
delete
public boolean delete() -
exists
public boolean exists() -
getOutputStream
- Specified by:
getOutputStream
in interfaceResource
- Throws:
FileNotFoundException
-
getResource
- Specified by:
getResource
in interfaceResource
-
getFile
-
getResourceAsFile
- Specified by:
getResourceAsFile
in interfaceResource
-
length
public long length() -
getCanonicalPath
- Specified by:
getCanonicalPath
in interfaceResource
- Throws:
IOException
-
getCanonicalResource
- Specified by:
getCanonicalResource
in interfaceResource
-
canWrite
public boolean canWrite() -
mkdir
public boolean mkdir() -
equals
-
hashCode
public int hashCode() -
toString
-
getFileSystemRoot
- Specified by:
getFileSystemRoot
in interfaceResource
-