|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for abstract files.
Method Summary | |
boolean |
exists()
Check whether the file exists. |
java.io.InputStream |
getFileAsInputStream()
|
java.lang.String |
getFileAsString()
Get the contents of the file as a string. |
java.util.Date |
getLastModified()
Get the last modification time of the file. |
java.lang.String |
getMimeType()
Get the stored mime-type of the file or compute it. |
java.lang.String |
getPath()
Get the the path that this file has. |
java.lang.String |
getProperty(java.lang.String propertyName)
Retrieve a property of the file. |
int |
getSize()
Get the size of the file. |
boolean |
isDirectory()
Determine if this is a directory. |
boolean |
isOriginal()
Check whether this file has not been modified by the user. |
void |
setProperty(java.lang.String propertyName,
java.lang.String propertyContents)
Set a property on a file. |
Method Detail |
public java.lang.String getPath()
public boolean exists()
public int getSize()
public java.util.Date getLastModified()
public java.lang.String getMimeType()
public java.io.InputStream getFileAsInputStream() throws java.io.FileNotFoundException
java.io.FileNotFoundException
public java.lang.String getFileAsString() throws java.io.FileNotFoundException
java.io.FileNotFoundException
public boolean isOriginal()
public boolean isDirectory()
public java.lang.String getProperty(java.lang.String propertyName)
propertyName
- the name of the property to fetch.
public void setProperty(java.lang.String propertyName, java.lang.String propertyContents)
propertyName
- the name of the property.propertyContents
- the contents of the property.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |