public static interface AbstractFileSystem.Info extends Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID
Deprecated.
Only public by accident.
|
Modifier and Type | Method and Description |
---|---|
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.
|
@Deprecated static final long serialVersionUID
Date lastModified(String name)
name
- the file to testboolean folder(String name)
name
- name of the filetrue
if the file is folder, false
if it is databoolean readOnly(String name)
name
- the file to testtrue
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 testInputStream inputStream(String name) throws FileNotFoundException
name
- the file to testFileNotFoundException
- if the file does not exist or is invalidOutputStream outputStream(String name) throws IOException
name
- the file to testIOException
- if an error occurs (the file is invalid, etc.)void lock(String name) throws IOException
FileLock
within NetBeans, however.name
- name of the fileIOException
- (e.g. FileAlreadyLockedException
) if the file is already locked or otherwise cannot be lockedvoid unlock(String name)
name
- name of the filevoid markUnimportant(String name)
name
- the file to mark