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