java.io.SerializableJarFileSystem.Impl, LocalFileSystem.Impl, XMLFileSystem.Implpublic static interface AbstractFileSystem.Info
extends java.io.Serializable
| Modifier and Type | Field | Description |
|---|---|---|
static long |
serialVersionUID |
Deprecated.
Only public by accident.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
folder(java.lang.String name) |
Test if the file is a folder or contains data.
|
java.io.InputStream |
inputStream(java.lang.String name) |
Get input stream.
|
java.util.Date |
lastModified(java.lang.String name) |
Get last modification time.
|
void |
lock(java.lang.String name) |
Lock the file.
|
void |
markUnimportant(java.lang.String name) |
Mark the file as being unimportant.
|
java.lang.String |
mimeType(java.lang.String name) |
Get the MIME type of the file.
|
java.io.OutputStream |
outputStream(java.lang.String name) |
Get output stream.
|
boolean |
readOnly(java.lang.String name) |
Test whether this file can be written to or not.
|
long |
size(java.lang.String name) |
Get the size of the file.
|
void |
unlock(java.lang.String name) |
Unlock the file.
|
@Deprecated static final long serialVersionUID
java.util.Date lastModified(java.lang.String name)
name - the file to testboolean folder(java.lang.String name)
name - name of the filetrue if the file is folder, false if it is databoolean readOnly(java.lang.String name)
name - the file to testtrue if the file is read-onlyjava.lang.String mimeType(java.lang.String name)
name - the file to test"text/plain")
or null if no special support for recognizing MIME is implemented.long size(java.lang.String name)
name - the file to testjava.io.InputStream inputStream(java.lang.String name)
throws java.io.FileNotFoundException
name - the file to testjava.io.FileNotFoundException - if the file does not exist or is invalidjava.io.OutputStream outputStream(java.lang.String name)
throws java.io.IOException
name - the file to testjava.io.IOException - if an error occurs (the file is invalid, etc.)void lock(java.lang.String name) throws java.io.IOException
FileLock within NetBeans, however.name - name of the filejava.io.IOException - (e.g. FileAlreadyLockedException) if the file is already locked or otherwise cannot be lockedvoid unlock(java.lang.String name)
name - name of the filevoid markUnimportant(java.lang.String name)
name - the file to markBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.