Package generic.jar
Interface Resource
- All Known Implementing Classes:
FileResource
,JarResource
public interface Resource
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canWrite()
boolean
delete()
boolean
exists()
getFile()
getName()
getResource
(String name) getResourceAsFile
(ResourceFile resourceFile) boolean
boolean
isFile()
long
long
length()
listFiles
(ResourceFileFilter filter) boolean
mkdir()
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:
FileNotFoundException
IOException
-
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
-