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 boolean
canWrite()
boolean
delete()
boolean
exists()
java.lang.String
getAbsolutePath()
java.lang.String
getCanonicalPath()
Resource
getCanonicalResource()
java.io.File
getFile()
java.io.File
getFileSystemRoot()
java.io.InputStream
getInputStream()
java.lang.String
getName()
java.io.OutputStream
getOutputStream()
Resource
getParent()
Resource
getResource(java.lang.String name)
java.io.File
getResourceAsFile(ResourceFile resourceFile)
boolean
isDirectory()
boolean
isFile()
long
lastModified()
long
length()
ResourceFile[]
listFiles()
ResourceFile[]
listFiles(ResourceFileFilter filter)
boolean
mkdir()
java.net.URI
toURI()
java.net.URL
toURL()
-
-
-
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.FileNotFoundException
java.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)
-
-