| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Information about files.
| Field Summary | |
static long | 
serialVersionUID
Deprecated. Only public by accident.  | 
| 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 test
public boolean folder(String name)
name - name of the file
true if the file is folder, false if it is datapublic boolean readOnly(String name)
name - the file to test
true 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 test
FileNotFoundException - if the file does not exist or is invalidpublic OutputStream outputStream(String name) throws IOException
name - the file to test
IOException - 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 file
FileAlreadyLockedException - if the file is already locked
IOExceptionpublic 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||