java.lang.Object
de.grogra.util.TreeModelSupport
de.grogra.vfs.FileSystem
de.grogra.vfs.LocalFileSystem
- 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 TypeMethodDescriptionaddLocalFile
(Object source, Object targetDir, String name) protected Object
createImpl
(Object parent, String name, boolean createDirectory) void
protected Object
fireInserted
(Object createImplRet) 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
Methods inherited from class de.grogra.vfs.FileSystem
addFile, addFile, addLocalFile, addLocalFile, completeListFiles, copyFilesTo, copyFileTo, copyFileTo, copyFileToDirectory, copyFileToDirectory, create, create, createIfDoesntExist, createIfDoesntExist, createIfDoesntExist, ensureNewDir, ensureNewFile, equals, getAttribute, getAttribute, getAttributes, 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
-
Field Details
-
FILE_ADAPTER
-
root
-
-
Constructor Details
-
LocalFileSystem
-
-
Method Details
-
isPersistent
public boolean isPersistent()- Specified by:
isPersistent
in classFileSystem
-
createImpl
- Specified by:
createImpl
in classFileSystem
- Throws:
IOException
-
fireInserted
- Overrides:
fireInserted
in classFileSystem
-
delete
- Specified by:
delete
in classFileSystem
- Throws:
IOException
-
getName
- Specified by:
getName
in classFileSystem
-
toURL
- Specified by:
toURL
in classFileSystem
-
toFile
- Specified by:
toFile
in classFileSystem
-
getParent
- Specified by:
getParent
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
-
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
-
getOutputStream
- Specified by:
getOutputStream
in classFileSystem
- Throws:
IOException
-
getInputStream
- Specified by:
getInputStream
in classFileSystem
- Throws:
IOException
-
addLocalFile
- Overrides:
addLocalFile
in classFileSystem
- Throws:
IOException
-
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
-