|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.openide.filesystems.JarFileSystem.Impl
Implementation of all interfaces List, Change, Info and Attr that delegates to JarFileSystem
| Fields inherited from interface org.openide.filesystems.AbstractFileSystem.List |
serialVersionUID |
| Fields inherited from interface org.openide.filesystems.AbstractFileSystem.Info |
serialVersionUID |
| Fields inherited from interface org.openide.filesystems.AbstractFileSystem.Change |
serialVersionUID |
| Fields inherited from interface org.openide.filesystems.AbstractFileSystem.Attr |
serialVersionUID |
| Constructor Summary | |
JarFileSystem.Impl(JarFileSystem fs)
Constructor. |
|
| Method Summary | |
Enumeration |
attributes(String name)
Get all file attribute names for the file. |
String[] |
children(String name)
Get a list of children files for a given folder. |
void |
createData(String name)
Create new data file. |
void |
createFolder(String name)
Create new folder. |
void |
delete(String name)
Delete a 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 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. |
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)
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 JarFileSystem.Impl(JarFileSystem fs)
fs - the file system to delegate to| Method Detail |
public String[] children(String name)
AbstractFileSystem.Listchildren in interface AbstractFileSystem.Listorg.openide.filesystems.AbstractFileSystem.Listf - the folder, by name; e.g. top/next/afterthatfile.ext (no path)
the array can contain null values that will be ignored
public void createFolder(String name)
throws IOException
AbstractFileSystem.ChangecreateFolder in interface AbstractFileSystem.Changeorg.openide.filesystems.AbstractFileSystem.Changename - full name of new folder, e.g. topfolder/newfolderIOException - if the operation fails
public void createData(String name)
throws IOException
AbstractFileSystem.ChangecreateData in interface AbstractFileSystem.Changeorg.openide.filesystems.AbstractFileSystem.Changename - full name of the file, e.g. path/from/root/filename.extIOException - if the file cannot be created (e.g. already exists)
public void rename(String oldName,
String newName)
throws IOException
AbstractFileSystem.Changerename in interface AbstractFileSystem.Changeorg.openide.filesystems.AbstractFileSystem.ChangeoldName - old name of the file; fully qualifiednewName - new name of the file; fully qualifiedIOException - if it could not be renamed
public void delete(String name)
throws IOException
AbstractFileSystem.Changedelete in interface AbstractFileSystem.Changeorg.openide.filesystems.AbstractFileSystem.Changename - name of file; fully qualifiedIOException - if the file could not be deletedpublic Date lastModified(String name)
AbstractFileSystem.InfolastModified in interface AbstractFileSystem.Infoorg.openide.filesystems.AbstractFileSystem.Infoname - the file to testpublic boolean folder(String name)
AbstractFileSystem.Infofolder in interface AbstractFileSystem.Infoorg.openide.filesystems.AbstractFileSystem.Infoname - name of the filetrue if the file is folder, false if it is datapublic boolean readOnly(String name)
AbstractFileSystem.InforeadOnly in interface AbstractFileSystem.Infoorg.openide.filesystems.AbstractFileSystem.Infoname - the file to testtrue if the file is read-onlypublic String mimeType(String name)
AbstractFileSystem.InfomimeType in interface AbstractFileSystem.Infoorg.openide.filesystems.AbstractFileSystem.Infoname - the file to test"text/plain")
or null if no special support for recognizing MIME is implemented.public long size(String name)
AbstractFileSystem.Infosize in interface AbstractFileSystem.Infoorg.openide.filesystems.AbstractFileSystem.Infoname - the file to test
public InputStream inputStream(String name)
throws FileNotFoundException
AbstractFileSystem.InfoinputStream in interface AbstractFileSystem.Infoorg.openide.filesystems.AbstractFileSystem.Infoname - the file to testFileNotFoundException - if the file does not exist or is invalid
public OutputStream outputStream(String name)
throws IOException
AbstractFileSystem.InfooutputStream in interface AbstractFileSystem.Infoorg.openide.filesystems.AbstractFileSystem.Infoname - the file to testIOException - if an error occurs (the file is invalid, etc.)
public void lock(String name)
throws IOException
AbstractFileSystem.InfoFileLock within the IDE, however.lock in interface AbstractFileSystem.Infoorg.openide.filesystems.AbstractFileSystem.Infoname - name of the fileFileAlreadyLockedException - if the file is already lockedpublic void unlock(String name)
AbstractFileSystem.Infounlock in interface AbstractFileSystem.Infoorg.openide.filesystems.AbstractFileSystem.Infoname - name of the filepublic void markUnimportant(String name)
AbstractFileSystem.InfomarkUnimportant in interface AbstractFileSystem.Infoorg.openide.filesystems.AbstractFileSystem.Infoname - the file to mark
public Object readAttribute(String name,
String attrName)
AbstractFileSystem.AttrreadAttribute in interface AbstractFileSystem.Attrorg.openide.filesystems.AbstractFileSystem.Attrname - the fileattrName - name of the attributenull 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
AbstractFileSystem.AttrwriteAttribute in interface AbstractFileSystem.Attrorg.openide.filesystems.AbstractFileSystem.Attrname - the fileattrName - name of the attributevalue - new value or null to clear the attribute. Must be serializable, although particular file systems 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)
AbstractFileSystem.Attrattributes in interface AbstractFileSystem.Attrorg.openide.filesystems.AbstractFileSystem.Attrname - the file
public void renameAttributes(String oldName,
String newName)
AbstractFileSystem.AttrrenameAttributes in interface AbstractFileSystem.Attrorg.openide.filesystems.AbstractFileSystem.AttroldName - old name of the filenewName - new name of the filepublic void deleteAttributes(String name)
AbstractFileSystem.AttrdeleteAttributes in interface AbstractFileSystem.Attrorg.openide.filesystems.AbstractFileSystem.Attrname - name of the file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||