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, isMagic
beep, getChildMaker, getCreator, getDataObject, getDescription, getIcon, getLabel, getPathElement, hasDataObject, makeChild, makeErrorChild, registerDataObject, setChildMaker, setCreator, setDescription, setIconID, setLabel, setName, setParentObject, toString
public ZipFileDataNode(File file) throws NoSuchDataException
ZipFileDataNode
from a
File
object.file
- a File
object representing the file from
which the node is to be createdNoSuchDataException
public Object getParentObject()
DataNode
getParentObject
in interface DataNode
getParentObject
in class DefaultDataNode
protected List getEntries() throws IOException
ZipArchiveDataNode
getEntries
in class ZipArchiveDataNode
ZipEntry
objects
which make up this zip archive.IOException
protected Iterator getChildIteratorAtLevel(String level, DataNode parent) throws IOException
ZipArchiveDataNode
getChildIteratorAtLevel
in class ZipArchiveDataNode
level
- 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 levelIOException
public void configureDetail(DetailViewer dv)
DefaultDataNode
configureDetail
in interface DataNode
configureDetail
in class DefaultDataNode
dv
- the detail viewer which this node is given an opportunity
to configureCopyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.