Package generic.jar
Class FileResource
java.lang.Object
generic.jar.FileResource
- All Implemented Interfaces:
Resource
-
Constructor Summary
Constructors -
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
-
FileResource
-
-
Method Details
-
getResource
- Specified by:
getResourcein interfaceResource
-
getAbsolutePath
- Specified by:
getAbsolutePathin interfaceResource
-
listFiles
-
listFiles
-
getName
-
isDirectory
public boolean isDirectory()- Specified by:
isDirectoryin interfaceResource
-
toURL
- Specified by:
toURLin interfaceResource- Throws:
MalformedURLException
-
getInputStream
- Specified by:
getInputStreamin interfaceResource- Throws:
FileNotFoundException
-
getOutputStream
- Specified by:
getOutputStreamin interfaceResource- Throws:
FileNotFoundException
-
getParent
-
lastModified
public long lastModified()- Specified by:
lastModifiedin interfaceResource
-
hashCode
public int hashCode() -
equals
-
delete
public boolean delete() -
exists
public boolean exists() -
getFile
-
getResourceAsFile
- Specified by:
getResourceAsFilein interfaceResource
-
length
public long length() -
getCanonicalPath
- Specified by:
getCanonicalPathin interfaceResource- Throws:
IOException
-
isFile
public boolean isFile() -
getCanonicalResource
- Specified by:
getCanonicalResourcein interfaceResource
-
canWrite
public boolean canWrite() -
mkdir
public boolean mkdir() -
toString
-
getFileSystemRoot
- Specified by:
getFileSystemRootin interfaceResource
-
toURI
-