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
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
closeQuiet
(Object file) close file without triggering eventprotected Object
createImpl
(Object parent, String name, boolean createDirectory) void
getCompletePath
(Object file) de.grogra.vfs.JRTFileSystem.Entry
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.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, 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
-
JRT_ADAPTER
-
-
Constructor Details
-
JRTFileSystem
-
-
Method Details
-
isPersistent
public boolean isPersistent()- Specified by:
isPersistent
in classFileSystem
-
delete
- Specified by:
delete
in classFileSystem
-
getName
- Specified by:
getName
in classFileSystem
-
getParent
- Specified by:
getParent
in classFileSystem
-
isLeaf
-
getCompletePath
-
isReadOnly
- Specified by:
isReadOnly
in classFileSystem
-
getTime
- Specified by:
getTime
in classFileSystem
-
closeQuiet
close file without triggering event -
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
-
getOutputStream
- Specified by:
getOutputStream
in classFileSystem
-
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
-
getEntry
-