public class ZipFileDataNode extends ZipArchiveDataNode
| Constructor and Description |
|---|
ZipFileDataNode(java.io.File file)
Initialises a
ZipFileDataNode from a
File object. |
| Modifier and Type | Method and Description |
|---|---|
void |
configureDetail(DetailViewer dv)
No custom configuration is performed.
|
protected java.util.Iterator |
getChildIteratorAtLevel(java.lang.String level,
DataNode parent)
Returns an iterator over the DataNodes at a given level in the
hierarchy of this archive.
|
protected java.util.List |
getEntries()
Returns a list of all the ZipEntry objects in
this zip archive.
|
java.lang.Object |
getParentObject()
Returns an object which is in some sense the parent of the one
this node is based on.
|
allowsChildren, getChildIterator, getEntriesAtLevel, getName, getNodeTLA, getNodeType, getPathSeparator, isMagicbeep, getChildMaker, getCreator, getDataObject, getDescription, getIcon, getLabel, getPathElement, hasDataObject, makeChild, makeErrorChild, registerDataObject, setChildMaker, setCreator, setDescription, setIconID, setLabel, setName, setParentObject, toStringpublic ZipFileDataNode(java.io.File file)
throws NoSuchDataException
ZipFileDataNode from a
File object.file - a File object representing the file from
which the node is to be createdNoSuchDataExceptionpublic java.lang.Object getParentObject()
DataNodegetParentObject in interface DataNodegetParentObject in class DefaultDataNodeprotected java.util.List getEntries()
throws java.io.IOException
ZipArchiveDataNodegetEntries in class ZipArchiveDataNodeZipEntry objects
which make up this zip archive.java.io.IOExceptionprotected java.util.Iterator getChildIteratorAtLevel(java.lang.String level,
DataNode parent)
throws java.io.IOException
ZipArchiveDataNodegetChildIteratorAtLevel in class ZipArchiveDataNodelevel - the required starting substring of the name of all
ZipEntries to be represented in the resultparent - the DataNode whose children the resulting nodes will beDataNode objects corresponding to
the ZipEntry objects specified by leveljava.io.IOExceptionpublic void configureDetail(DetailViewer dv)
DefaultDataNodeconfigureDetail in interface DataNodeconfigureDetail in class DefaultDataNodedv - the detail viewer which this node is given an opportunity
to configureCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.