java.lang.Object
de.grogra.util.TreeModelSupport
de.grogra.vfs.FileSystem
de.grogra.vfs.FileSystemBase
de.grogra.vfs.JRTFileSystem
- All Implemented Interfaces:
TreeModel
A wrapper for the JRT filesystem, as groimp filesystem do not extend java filesystem.
This wrapper should not be able to overwrite its content.
The Entries do not contains content, only their name match the path where they are
stored in the jrt path. When "opened", the Entry get the inputstream from the jrt.
-
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 TypeMethodDescriptionvoidcloseQuiet(Object file) close file without triggering eventprotected ObjectcreateImpl(Object parent, String name, boolean createDirectory) voidgetCompletePath(Object file) de.grogra.vfs.JRTFileSystem.EntrygetInputStream(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.FileSystemBase
getURLStreamHandler, toFile, toURLMethods 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, findAll, fireInserted, getAbsolutePath, 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
-
JRT_ADAPTER
-
-
Constructor Details
-
JRTFileSystem
-
-
Method Details
-
isPersistent
public boolean isPersistent()- Specified by:
isPersistentin classFileSystem
-
delete
- Specified by:
deletein classFileSystem
-
getName
- Specified by:
getNamein classFileSystem
-
getParent
- Specified by:
getParentin classFileSystem
-
isLeaf
-
getCompletePath
-
isReadOnly
- Specified by:
isReadOnlyin classFileSystem
-
getTime
- Specified by:
getTimein classFileSystem
-
closeQuiet
close file without triggering event -
setTime
- Specified by:
setTimein classFileSystem
-
getSize
- Specified by:
getSizein classFileSystem
-
getRoot
- Specified by:
getRootin interfaceTreeModel- Specified by:
getRootin classFileSystem
-
listFiles
- Specified by:
listFilesin classFileSystem
-
getFile
- Specified by:
getFilein classFileSystem
-
createImpl
- Specified by:
createImplin classFileSystem- Throws:
IOException
-
getInputStream
- Specified by:
getInputStreamin classFileSystem
-
getOutputStream
- Specified by:
getOutputStreamin classFileSystem
-
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-
-
getEntry
-