de.grogra.vfs
Class JoinedFileSystem
java.lang.Object
de.grogra.util.TreeModelSupport
de.grogra.vfs.FileSystem
de.grogra.vfs.FileSystemBase
de.grogra.vfs.JoinedFileSystem
- All Implemented Interfaces:
- javax.swing.tree.TreeModel
public class JoinedFileSystem
- extends FileSystemBase
Constructor Summary |
JoinedFileSystem(java.lang.String fsName,
java.lang.String protocol)
|
Methods inherited from class de.grogra.vfs.FileSystem |
addLocalFile, copyFilesTo, copyFileTo, copyFileTo, copyFileToDirectory, copyFileToDirectory, create, create, equals, fireInserted, getAttribute, getAttribute, getCharset, getChild, getChildCount, getEventFor, getFile, getFile, getFSName, getIndexOfChild, getManifest, getManifestName, getMimeType, getPath, getPathWithLeadingSlash, getProtocol, getReader, getTreePath, getWriter, isContainedInChildren, readJar, removeNonlistedAttributes, setFileNameMap, setManifest, setMimeType, valueForPathChanged, writeJar |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.tree.TreeModel |
addTreeModelListener, removeTreeModelListener |
JoinedFileSystem
public JoinedFileSystem(java.lang.String fsName,
java.lang.String protocol)
addFileSystem
public void addFileSystem(FileSystem fs,
java.lang.String name,
java.lang.Object root)
createImpl
protected java.lang.Object createImpl(java.lang.Object parent,
java.lang.String name,
boolean createDirectory)
throws java.io.IOException
- Specified by:
createImpl
in class FileSystem
- Throws:
java.io.IOException
delete
public void delete(java.lang.Object file)
throws java.io.IOException
- Specified by:
delete
in class FileSystem
- Throws:
java.io.IOException
getAttributes
public java.util.jar.Attributes getAttributes(java.lang.Object file,
boolean create)
- Overrides:
getAttributes
in class FileSystem
getFile
public java.lang.Object getFile(java.lang.Object parent,
java.lang.String name)
- Specified by:
getFile
in class FileSystem
getFileSystemName
public java.lang.String getFileSystemName(FileSystem fs)
getInputStream
public java.io.InputStream getInputStream(java.lang.Object file)
throws java.io.IOException
- Specified by:
getInputStream
in class FileSystem
- Throws:
java.io.IOException
getName
public java.lang.String getName(java.lang.Object file)
- Specified by:
getName
in class FileSystem
getOutputStream
public java.io.OutputStream getOutputStream(java.lang.Object file,
boolean append)
throws java.io.IOException
- Specified by:
getOutputStream
in class FileSystem
- Throws:
java.io.IOException
getParent
public java.lang.Object getParent(java.lang.Object file)
- Specified by:
getParent
in class FileSystem
getRoot
public java.lang.Object getRoot()
- Specified by:
getRoot
in interface javax.swing.tree.TreeModel
- Specified by:
getRoot
in class FileSystem
getSize
public long getSize(java.lang.Object file)
- Specified by:
getSize
in class FileSystem
getTime
public long getTime(java.lang.Object file)
- Specified by:
getTime
in class FileSystem
isLeaf
public boolean isLeaf(java.lang.Object file)
isPersistent
public boolean isPersistent()
- Specified by:
isPersistent
in class FileSystem
isReadOnly
public boolean isReadOnly(java.lang.Object file)
- Specified by:
isReadOnly
in class FileSystem
listFiles
public java.lang.Object[] listFiles(java.lang.Object parent)
- Specified by:
listFiles
in class FileSystem
removeFileSystem
public void removeFileSystem(FileSystem fs)
setTime
public void setTime(java.lang.Object file,
long time)
- Specified by:
setTime
in class FileSystem