public class ZipTreeModel extends DefaultMutableTreeModel
| Modifier and Type | Class and Description |
|---|---|
static class |
ZipTreeModel.ZipNode |
childTypes, listFlavor, objectFlavor| Constructor and Description |
|---|
ZipTreeModel()
Creates a new instance of ZipTreeModel
|
| Modifier and Type | Method and Description |
|---|---|
javax.activation.DataSource |
createDataSource(ZipTreeModel.ZipNode zipNode)
Creates a JavaBeans Activation Framework data source
for the given zip node.
|
void |
dispose() |
java.util.zip.ZipFile |
getZipFile()
Returns the zip file used as a data source.
|
void |
setModel(java.io.File file)
Sets the zip file as the data source of the tree model.
|
void |
setModel(java.io.InputStream inputStream)
Sets the zip input stream as the data source of the tree model.
|
createNodeAt, exportTransferable, getCreatableNodeType, getCreatableNodeTypes, getNodeActions, importTransferable, insertAllInto, insertNodeInto, isEditable, isEnabled, isImportable, isNodeAddable, isNodeEditable, isNodeRemovable, removeNode, setEditable, setEnabled, setInsertableNodeTypes, setRootaddTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, valueForPathChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoveNodeFromParentpublic java.util.zip.ZipFile getZipFile()
public void setModel(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic void setModel(java.io.InputStream inputStream)
throws java.io.IOException
java.io.IOExceptionpublic void dispose()
public javax.activation.DataSource createDataSource(ZipTreeModel.ZipNode zipNode)