Package generic.jar
Interface Resource
- All Known Implementing Classes:
FileResource,JarResource
public interface Resource
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanWrite()booleandelete()booleanexists()getFile()getName()getResource(String name) getResourceAsFile(ResourceFile resourceFile) booleanbooleanisFile()longlonglength()listFiles(ResourceFileFilter filter) booleanmkdir()toURI()toURL()
-
Method Details
-
getResource
-
getAbsolutePath
String getAbsolutePath() -
listFiles
ResourceFile[] listFiles() -
listFiles
-
getName
String getName() -
isDirectory
boolean isDirectory() -
getParent
Resource getParent() -
toURL
- Throws:
MalformedURLException
-
lastModified
long lastModified() -
getInputStream
- Throws:
FileNotFoundExceptionIOException
-
delete
boolean delete() -
exists
boolean exists() -
getOutputStream
- Throws:
FileNotFoundException
-
getFile
File getFile() -
length
long length() -
getCanonicalPath
- Throws:
IOException
-
isFile
boolean isFile() -
getCanonicalResource
Resource getCanonicalResource() -
canWrite
boolean canWrite() -
mkdir
boolean mkdir() -
getFileSystemRoot
File getFileSystemRoot() -
toURI
URI toURI() -
getResourceAsFile
-