Package generic.jar
Interface Resource
-
- All Known Implementing Classes:
FileResource,JarResource
public interface Resource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanWrite()booleandelete()booleanexists()java.lang.StringgetAbsolutePath()java.lang.StringgetCanonicalPath()ResourcegetCanonicalResource()java.io.FilegetFile()java.io.FilegetFileSystemRoot()java.io.InputStreamgetInputStream()java.lang.StringgetName()java.io.OutputStreamgetOutputStream()ResourcegetParent()ResourcegetResource(java.lang.String name)java.io.FilegetResourceAsFile(ResourceFile resourceFile)booleanisDirectory()booleanisFile()longlastModified()longlength()ResourceFile[]listFiles()ResourceFile[]listFiles(ResourceFileFilter filter)booleanmkdir()java.net.URItoURI()java.net.URLtoURL()
-
-
-
Method Detail
-
getResource
Resource getResource(java.lang.String name)
-
getAbsolutePath
java.lang.String getAbsolutePath()
-
listFiles
ResourceFile[] listFiles()
-
listFiles
ResourceFile[] listFiles(ResourceFileFilter filter)
-
getName
java.lang.String getName()
-
isDirectory
boolean isDirectory()
-
getParent
Resource getParent()
-
toURL
java.net.URL toURL() throws java.net.MalformedURLException- Throws:
java.net.MalformedURLException
-
lastModified
long lastModified()
-
getInputStream
java.io.InputStream getInputStream() throws java.io.FileNotFoundException, java.io.IOException- Throws:
java.io.FileNotFoundExceptionjava.io.IOException
-
delete
boolean delete()
-
exists
boolean exists()
-
getOutputStream
java.io.OutputStream getOutputStream() throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
getFile
java.io.File getFile()
-
length
long length()
-
getCanonicalPath
java.lang.String getCanonicalPath() throws java.io.IOException- Throws:
java.io.IOException
-
isFile
boolean isFile()
-
getCanonicalResource
Resource getCanonicalResource()
-
canWrite
boolean canWrite()
-
mkdir
boolean mkdir()
-
getFileSystemRoot
java.io.File getFileSystemRoot()
-
toURI
java.net.URI toURI()
-
getResourceAsFile
java.io.File getResourceAsFile(ResourceFile resourceFile)
-
-