|
org.openide.filesystems 6.4.22 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openide.filesystems.XMLFileSystem.Impl
public static class XMLFileSystem.Impl
Implementation of all interfaces List, Change, Info and Attr that delegates to XMLFileSystem
| Constructor Summary | |
|---|---|
XMLFileSystem.Impl(XMLFileSystem fs)
Constructor. |
|
| Method Summary | |
|---|---|
Enumeration |
attributes(String name)
Get all file attribute names for the file. |
String[] |
children(String name)
Scans children for given name |
void |
createData(String name)
Create new data file. |
void |
createFolder(String name)
Creates new folder named name. |
void |
delete(String name)
Delete the file. |
void |
deleteAttributes(String name)
Called when a file is deleted, to also delete its attributes. |
boolean |
folder(String name)
Test if the file is folder or contains data. |
InputStream |
inputStream(String name)
Get input stream. |
Date |
lastModified(String name)
Get last modification time. |
void |
lock(String name)
Does nothing to lock the file. |
void |
markUnimportant(String name)
Does nothing. |
String |
mimeType(String name)
Get the MIME type of the file. |
OutputStream |
outputStream(String name)
Get output stream. |
Object |
readAttribute(String name,
String attrName)
Get the file attribute with the specified name. |
boolean |
readOnly(String name)
Test whether this file can be written to or not. |
void |
rename(String oldName,
String newName)
Rename a file. |
void |
renameAttributes(String oldName,
String newName)
Called when a file is renamed, to appropriately update its attributes. |
long |
size(String name)
Get the size of the file. |
void |
unlock(String name)
Does nothing to unlock the file. |
void |
writeAttribute(String name,
String attrName,
Object value)
Set the file attribute with the specified name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLFileSystem.Impl(XMLFileSystem fs)
fs - the filesystem to delegate to| Method Detail |
|---|
public String[] children(String name)
children in interface AbstractFileSystem.Listname - the folder, by name; e.g. top/next/afterthat
public void createFolder(String name) throws IOException
createFolder in interface AbstractFileSystem.Changename - name of folder
IOException - if operation failspublic void createData(String name) throws IOException
createData in interface AbstractFileSystem.Changename - name of the file
IOException - if the file cannot be created (e.g. already exists)public void rename(String oldName, String newName) throws IOException
rename in interface AbstractFileSystem.ChangeoldName - old name of the file; fully qualifiednewName - new name of the file; fully qualified
IOException - if it could not be renamedpublic void delete(String name) throws IOException
delete in interface AbstractFileSystem.Changename - name of file
IOException - if the file could not be deletedpublic Date lastModified(String name)
lastModified in interface AbstractFileSystem.Infoname - the file to test
public boolean folder(String name)
folder in interface AbstractFileSystem.Infoname - name of the file
public boolean readOnly(String name)
readOnly in interface AbstractFileSystem.Infoname - the file to test
true if file is read-onlypublic String mimeType(String name)
mimeType in interface AbstractFileSystem.Infoname - the file to test
"text/plain")
or null if no special support for recognizing MIME is implemented.public long size(String name)
size in interface AbstractFileSystem.Infoname - the file to test
public InputStream inputStream(String name) throws FileNotFoundException
inputStream in interface AbstractFileSystem.Infoname - the file to test
FileNotFoundException - if the file does not exists or is invalidpublic OutputStream outputStream(String name) throws IOException
outputStream in interface AbstractFileSystem.Infoname - the file to test
IOException - if an error occures (the file is invalid, etc.)public void lock(String name) throws IOException
lock in interface AbstractFileSystem.Infoname - name of the file
IOException - if cannot be lockedpublic void unlock(String name)
unlock in interface AbstractFileSystem.Infoname - name of the filepublic void markUnimportant(String name)
markUnimportant in interface AbstractFileSystem.Infoname - the file to markpublic Object readAttribute(String name, String attrName)
readAttribute in interface AbstractFileSystem.Attrname - the fileattrName - name of the attribute
null if the attribute is unset (or could not be properly restored for some reason)public void writeAttribute(String name, String attrName, Object value) throws IOException
writeAttribute in interface AbstractFileSystem.Attrname - the fileattrName - name of the attributevalue - new value or null to clear the attribute. Must be serializable, although particular filesystems may or may not use serialization to store attribute values.
IOException - if the attribute cannot be set. If serialization is used to store it, this may in fact be a subclass such as NotSerializableException.public Enumeration attributes(String name)
attributes in interface AbstractFileSystem.Attrname - the file
public void renameAttributes(String oldName, String newName)
renameAttributes in interface AbstractFileSystem.AttroldName - old name of the filenewName - new name of the filepublic void deleteAttributes(String name)
deleteAttributes in interface AbstractFileSystem.Attrname - name of the file
|
org.openide.filesystems 6.4.22 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||