public class ZipFileDataNode extends ZipArchiveDataNode
| Constructor and Description |
|---|
ZipFileDataNode(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 Iterator |
getChildIteratorAtLevel(String level,
DataNode parent)
Returns an iterator over the DataNodes at a given level in the
hierarchy of this archive.
|
protected List |
getEntries()
Returns a list of all the
ZipEntry objects in
this zip archive. |
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(File file) throws NoSuchDataException
ZipFileDataNode from a
File object.file - a File object representing the file from
which the node is to be createdNoSuchDataExceptionpublic Object getParentObject()
DataNodeDataNode,
it is something which may get fed to a DataNodeFactory
to create DataNode. If no such object exists, which
may well be the case, null should be returned.getParentObject in interface DataNodegetParentObject in class DefaultDataNodenullprotected List getEntries() throws IOException
ZipArchiveDataNodeZipEntry objects in
this zip archive.getEntries in class ZipArchiveDataNodeZipEntry objects
which make up this zip archive.IOExceptionprotected Iterator getChildIteratorAtLevel(String level, DataNode parent) throws IOException
ZipArchiveDataNodelevel.getChildIteratorAtLevel 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 levelIOExceptionpublic void configureDetail(DetailViewer dv)
DefaultDataNodeconfigureDetail in interface DataNodeconfigureDetail in class DefaultDataNodedv - the detail viewer which this node is given an opportunity
to configureCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.