Package generic.jar
Class JarResource
java.lang.Object
generic.jar.JarResource
- All Implemented Interfaces:
Resource
-
Constructor Summary
ConstructorsConstructorDescriptionJarResource(JarResource parent, String path) JarResource(File jarFile, JarEntryFilter filter) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanWrite()booleandelete()booleanbooleanexists()getFile()getName()getResource(String childPath) getResourceAsFile(ResourceFile resourceFile) inthashCode()booleanbooleanisFile()longlonglength()listFiles(ResourceFileFilter filter) booleanmkdir()toString()toURI()toURL()
-
Constructor Details
-
JarResource
- Throws:
IOException
-
JarResource
-
-
Method Details
-
getAbsolutePath
- Specified by:
getAbsolutePathin interfaceResource
-
toURL
- Specified by:
toURLin interfaceResource- Throws:
MalformedURLException
-
toURI
-
listFiles
-
listFiles
-
getName
-
isDirectory
public boolean isDirectory()- Specified by:
isDirectoryin interfaceResource
-
isFile
public boolean isFile() -
getInputStream
- Specified by:
getInputStreamin interfaceResource- Throws:
IOException
-
getParent
-
lastModified
public long lastModified()- Specified by:
lastModifiedin interfaceResource
-
delete
public boolean delete() -
exists
public boolean exists() -
getOutputStream
- Specified by:
getOutputStreamin interfaceResource- Throws:
FileNotFoundException
-
getResource
- Specified by:
getResourcein interfaceResource
-
getFile
-
getResourceAsFile
- Specified by:
getResourceAsFilein interfaceResource
-
length
public long length() -
getCanonicalPath
- Specified by:
getCanonicalPathin interfaceResource- Throws:
IOException
-
getCanonicalResource
- Specified by:
getCanonicalResourcein interfaceResource
-
canWrite
public boolean canWrite() -
mkdir
public boolean mkdir() -
equals
-
hashCode
public int hashCode() -
toString
-
getFileSystemRoot
- Specified by:
getFileSystemRootin interfaceResource
-