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
FieldsFields inherited from class de.grogra.vfs.FileSystem
fileNameMap, manifest, MIME_TYPEFields inherited from class de.grogra.util.TreeModelSupport
NODES_CHANGED, NODES_INSERTED, NODES_REMOVED, STRUCTURE_CHANGED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLocalFile(Object source, Object targetDir, String name) protected ObjectcreateImpl(Object parent, String name, boolean createDirectory) voidprotected ObjectfireInserted(Object createImplRet) getAbsolutePath(Object file) getInputStream(Object file) getOutputStream(Object file, boolean append) getRoot()longlongbooleanbooleanbooleanisReadOnly(Object file) Object[]voidRemove a file from the filesystem.voidMethods 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, findAll, 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, writeJarMethods inherited from class de.grogra.util.TreeModelSupport
addTreeModelListener, allListenersRemoved, clearListeners, fireTreeModelEvent, fireTreeModelEvent, fireTreeModelEvent, fireTreeModelEvent, firstListenerAdded, hasListeners, removeTreeModelListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
isPersistentin classFileSystem
-
getAbsolutePath
- Overrides:
getAbsolutePathin classFileSystem
-
createImpl
- Specified by:
createImplin classFileSystem- Throws:
IOException
-
fireInserted
- Overrides:
fireInsertedin classFileSystem
-
delete
- Specified by:
deletein classFileSystem- Throws:
IOException
-
getName
- Specified by:
getNamein classFileSystem
-
toURL
- Specified by:
toURLin classFileSystem
-
toFile
- Specified by:
toFilein classFileSystem
-
getParent
- Specified by:
getParentin classFileSystem
-
getRoot
- Specified by:
getRootin interfaceTreeModel- Specified by:
getRootin classFileSystem
-
listFiles
- Specified by:
listFilesin classFileSystem
-
getFile
- Specified by:
getFilein classFileSystem
-
isLeaf
-
isReadOnly
- Specified by:
isReadOnlyin classFileSystem
-
getTime
- Specified by:
getTimein classFileSystem
-
setTime
- Specified by:
setTimein classFileSystem
-
getSize
- Specified by:
getSizein classFileSystem
-
getOutputStream
- Specified by:
getOutputStreamin classFileSystem- Throws:
IOException
-
getInputStream
- Specified by:
getInputStreamin classFileSystem- Throws:
IOException
-
addLocalFile
- Overrides:
addLocalFilein classFileSystem- Throws:
IOException
-
remove
Description copied from class:FileSystemRemove a file from the filesystem. It does not delete it if its local- Specified by:
removein classFileSystem- Parameters:
file-
-