|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.datanode.nodes.DefaultDataNode
uk.ac.starlink.datanode.nodes.ZipArchiveDataNode
uk.ac.starlink.datanode.nodes.ZipFileDataNode
public class ZipFileDataNode
A DataNode representing a zip archive stored in a file.
Constructor Summary | |
---|---|
ZipFileDataNode(File file)
Initialises a ZipFileDataNode from a
File object. |
Method Summary | |
---|---|
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. |
Methods inherited from class uk.ac.starlink.datanode.nodes.ZipArchiveDataNode |
---|
allowsChildren, getChildIterator, getEntriesAtLevel, getName, getNodeTLA, getNodeType, getPathSeparator, isMagic |
Methods inherited from class uk.ac.starlink.datanode.nodes.DefaultDataNode |
---|
beep, getChildMaker, getCreator, getDataObject, getDescription, getIcon, getLabel, getPathElement, hasDataObject, makeChild, makeErrorChild, registerDataObject, setChildMaker, setCreator, setDescription, setIconID, setLabel, setName, setParentObject, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 created
NoSuchDataException
Method Detail |
---|
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 be
DataNode
objects corresponding to
the ZipEntry objects specified by level
IOException
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 configure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |