|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Information about files.
| Field Summary | |
static long |
serialVersionUID
|
| Method Summary | |
boolean |
folder(String name)
Test if the file is a folder or contains data. |
InputStream |
inputStream(String name)
Get input stream. |
Date |
lastModified(String name)
Get last modification time. |
void |
lock(String name)
Lock the file. |
void |
markUnimportant(String name)
Mark the file as being unimportant. |
String |
mimeType(String name)
Get the MIME type of the file. |
OutputStream |
outputStream(String name)
Get output stream. |
boolean |
readOnly(String name)
Test whether this file can be written to or not. |
long |
size(String name)
Get the size of the file. |
void |
unlock(String name)
Unlock the file. |
| Field Detail |
public static final long serialVersionUID
| Method Detail |
public Date lastModified(String name)
name - the file to testpublic boolean folder(String name)
name - name of the filetrue if the file is folder, false if it is datapublic boolean readOnly(String name)
name - the file to testtrue if the file is read-onlypublic String mimeType(String name)
name - the file to test"text/plain")
or null if no special support for recognizing MIME is implemented.public long size(String name)
name - the file to test
public InputStream inputStream(String name)
throws FileNotFoundException
name - the file to testFileNotFoundException - if the file does not exist or is invalid
public OutputStream outputStream(String name)
throws IOException
name - the file to testIOException - if an error occurs (the file is invalid, etc.)
public void lock(String name)
throws IOException
FileLock within the IDE, however.name - name of the fileFileAlreadyLockedException - if the file is already lockedpublic void unlock(String name)
name - name of the filepublic void markUnimportant(String name)
name - the file to mark
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||