|
org.openide.filesystems 6.4.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface AbstractFileSystem.Info
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 |
---|
static final long serialVersionUID
Method Detail |
---|
Date lastModified(String name)
name
- the file to test
boolean folder(String name)
name
- name of the file
true
if the file is folder, false
if it is databoolean readOnly(String name)
name
- the file to test
true
if the file is read-onlyString mimeType(String name)
name
- the file to test
"text/plain"
)
or null if no special support for recognizing MIME is implemented.long size(String name)
name
- the file to test
InputStream inputStream(String name) throws FileNotFoundException
name
- the file to test
FileNotFoundException
- if the file does not exist or is invalidOutputStream outputStream(String name) throws IOException
name
- the file to test
IOException
- if an error occurs (the file is invalid, etc.)void lock(String name) throws IOException
FileLock
within the IDE, however.
name
- name of the file
FileAlreadyLockedException
- if the file is already locked
IOException
void unlock(String name)
name
- name of the filevoid markUnimportant(String name)
name
- the file to mark
|
org.openide.filesystems 6.4.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |