Package generic.jar
Class FileResource
- java.lang.Object
 - 
- generic.jar.FileResource
 
 
- 
- 
Constructor Summary
Constructors Constructor Description FileResource(java.io.File file) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanWrite()booleandelete()booleanequals(java.lang.Object obj)booleanexists()java.lang.StringgetAbsolutePath()java.lang.StringgetCanonicalPath()ResourcegetCanonicalResource()java.io.FilegetFile()java.io.FilegetFileSystemRoot()java.io.InputStreamgetInputStream()java.lang.StringgetName()java.io.OutputStreamgetOutputStream()FileResourcegetParent()ResourcegetResource(java.lang.String childPath)java.io.FilegetResourceAsFile(ResourceFile resourceFile)inthashCode()booleanisDirectory()booleanisFile()longlastModified()longlength()ResourceFile[]listFiles()ResourceFile[]listFiles(ResourceFileFilter filter)booleanmkdir()java.lang.StringtoString()java.net.URItoURI()java.net.URLtoURL() 
 - 
 
- 
- 
Method Detail
- 
getResource
public Resource getResource(java.lang.String childPath)
- Specified by:
 getResourcein interfaceResource
 
- 
getAbsolutePath
public java.lang.String getAbsolutePath()
- Specified by:
 getAbsolutePathin interfaceResource
 
- 
listFiles
public ResourceFile[] listFiles()
 
- 
listFiles
public ResourceFile[] listFiles(ResourceFileFilter filter)
 
- 
isDirectory
public boolean isDirectory()
- Specified by:
 isDirectoryin interfaceResource
 
- 
toURL
public java.net.URL toURL() throws java.net.MalformedURLException 
- 
getInputStream
public java.io.InputStream getInputStream() throws java.io.FileNotFoundException- Specified by:
 getInputStreamin interfaceResource- Throws:
 java.io.FileNotFoundException
 
- 
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.FileNotFoundException- Specified by:
 getOutputStreamin interfaceResource- Throws:
 java.io.FileNotFoundException
 
- 
getParent
public FileResource getParent()
 
- 
lastModified
public long lastModified()
- Specified by:
 lastModifiedin interfaceResource
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equalsin classjava.lang.Object
 
- 
getResourceAsFile
public java.io.File getResourceAsFile(ResourceFile resourceFile)
- Specified by:
 getResourceAsFilein interfaceResource
 
- 
getCanonicalPath
public java.lang.String getCanonicalPath() throws java.io.IOException- Specified by:
 getCanonicalPathin interfaceResource- Throws:
 java.io.IOException
 
- 
getCanonicalResource
public Resource getCanonicalResource()
- Specified by:
 getCanonicalResourcein interfaceResource
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
getFileSystemRoot
public java.io.File getFileSystemRoot()
- Specified by:
 getFileSystemRootin interfaceResource
 
 - 
 
 -