java.lang.Object
de.grogra.util.TreeModelSupport
de.grogra.vfs.FileSystem
de.grogra.vfs.FileSystemBase
de.grogra.vfs.JoinedFileSystem
- All Implemented Interfaces:
TreeModel
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.vfs.FileSystem
FileSystem.Out
-
Field Summary
Fields inherited from class de.grogra.vfs.FileSystem
fileNameMap, manifest, MIME_TYPE
Fields inherited from class de.grogra.util.TreeModelSupport
NODES_CHANGED, NODES_INSERTED, NODES_REMOVED, STRUCTURE_CHANGED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFileSystem
(FileSystem fs, String name, Object root) protected Object
createImpl
(Object parent, String name, boolean createDirectory) void
getAttributes
(Object file, boolean create) getInputStream
(Object file) getOutputStream
(Object file, boolean append) getRoot()
long
long
boolean
boolean
boolean
isReadOnly
(Object file) Object[]
void
Remove a file from the filesystem.void
void
Methods inherited from class de.grogra.vfs.FileSystemBase
getURLStreamHandler, toFile, toURL
Methods inherited from class de.grogra.vfs.FileSystem
addFile, addFile, addLocalFile, addLocalFile, addLocalFile, completeListFiles, copyFilesTo, copyFileTo, copyFileTo, copyFileToDirectory, copyFileToDirectory, create, create, createIfDoesntExist, createIfDoesntExist, createIfDoesntExist, ensureNewDir, ensureNewFile, equals, fireInserted, getAttribute, getAttribute, getBaseName, getBaseName, getCharset, getChild, getChildCount, getEventFor, getFile, getFile, getFSName, getIndexOfChild, getManifest, getManifestName, getMimeType, getPath, getPathWithLeadingSlash, getProtocol, getReader, getTreePath, getWriter, isContainedInChildren, isDirectory, isIn, readJar, removeNonlistedAttributes, setFileNameMap, setManifest, setMimeType, valueForPathChanged, writeJar, writeJar
Methods inherited from class de.grogra.util.TreeModelSupport
addTreeModelListener, allListenersRemoved, clearListeners, fireTreeModelEvent, fireTreeModelEvent, fireTreeModelEvent, fireTreeModelEvent, firstListenerAdded, hasListeners, removeTreeModelListener
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
-
Constructor Details
-
JoinedFileSystem
-
-
Method Details
-
isPersistent
public boolean isPersistent()- Specified by:
isPersistent
in classFileSystem
-
delete
- Specified by:
delete
in classFileSystem
- Throws:
IOException
-
getName
- Specified by:
getName
in classFileSystem
-
getParent
- Specified by:
getParent
in classFileSystem
-
isLeaf
-
isReadOnly
- Specified by:
isReadOnly
in classFileSystem
-
getTime
- Specified by:
getTime
in classFileSystem
-
setTime
- Specified by:
setTime
in classFileSystem
-
getSize
- Specified by:
getSize
in classFileSystem
-
getRoot
- Specified by:
getRoot
in interfaceTreeModel
- Specified by:
getRoot
in classFileSystem
-
listFiles
- Specified by:
listFiles
in classFileSystem
-
getFile
- Specified by:
getFile
in classFileSystem
-
createImpl
- Specified by:
createImpl
in classFileSystem
- Throws:
IOException
-
getInputStream
- Specified by:
getInputStream
in classFileSystem
- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStream
in classFileSystem
- Throws:
IOException
-
getAttributes
- Overrides:
getAttributes
in classFileSystem
-
addFileSystem
-
removeFileSystem
-
getFileSystemName
-
remove
Description copied from class:FileSystem
Remove a file from the filesystem. It does not delete it if its local- Specified by:
remove
in classFileSystem
-