|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gael.drb.DrbDefaultNodesChangeProducer
fr.gael.drb.DrbAbstractNode
fr.gael.drb.impl.DrbNodeImpl
fr.gael.drb.impl.zip.ZipFileNode
public class ZipFileNode
Zip File implementation
| Field Summary | |
|---|---|
protected ZipFile |
zipFile
the ZipFile |
| Fields inherited from interface fr.gael.drb.DrbItem |
|---|
ATTRIBUTE_ITEM, NODE_ITEM, UNDEFINED_ITEM, VALUE_ITEM |
| Constructor Summary | |
|---|---|
protected |
ZipFileNode(File file,
DrbNode basenode)
Builds a new ZipFileNode from a file. |
protected |
ZipFileNode(InputStream in,
DrbNode basenode)
Builds a new ZipFileNode from an inputStream |
protected |
ZipFileNode(ZipFile zip_file,
DrbNode basenode)
Builds a new ZipFileNode from a file. |
| Method Summary | |
|---|---|
protected ZipNode |
createNode(ZipEntry currententry,
DrbNode parent,
ZipEntry[] children)
This method create a zip node with a zip entry |
DrbAttributeList |
getAttributes()
The attributes of the nodes. |
DrbNodeList |
getChildren()
The children of the current node. |
ZipEntry[] |
getEntries()
This method get entries from the zipFile or from the inputStream |
Object |
getImpl(Class api)
Returns a specific implementation. |
int |
getIndex()
The index of the node in the parent children list. |
protected InputStream |
getInputstream(ZipEntry zip_entry)
Get the ZipInputStream |
String |
getName()
Name of the node. |
DrbNode |
getParent()
The parent of the current node. |
String |
getPath()
The full path of the node. |
boolean |
hasImpl(Class api)
Tests if a specific interface can be provided. |
| Methods inherited from class fr.gael.drb.impl.DrbNodeImpl |
|---|
close, createAttribute, createNode, flush, getProvider |
| Methods inherited from class fr.gael.drb.DrbAbstractNode |
|---|
allowsMultiOccurrence, appendChild, appendReference, equals, getAttribute, getChildAt, getChildrenCount, getContent, getFirstChild, getItemType, getLastChild, getNamedChild, getNamespaceBindings, getNamespaceURI, getNextSibling, getOccurrence, getPreviousSibling, getRoot, getValue, getValueType, getXPathName, getXPathName, hasChild, insertChild, removeChild, rename, replaceChild, setAttributes, setNamespaceBindings, setNamespaceURI, setValue, toString |
| Methods inherited from class fr.gael.drb.DrbDefaultNodesChangeProducer |
|---|
addNodesChangeListener, getListenerList, nodesChanged, nodesInserted, nodesRemoved, removeNodesChangeListener, setListenerList, structureChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ZipFile zipFile
| Constructor Detail |
|---|
protected ZipFileNode(InputStream in,
DrbNode basenode)
in - The inputStream that contains the zip.basenode - A reference to a the base node of an external
implementation.
protected ZipFileNode(File file,
DrbNode basenode)
throws IOException
file - The file that contains the zip. This parameter shall never be
null.basenode - A reference to a the base node of an external
implementation.
IOException - This exception is raised when ZipFile can't be
created
protected ZipFileNode(ZipFile zip_file,
DrbNode basenode)
throws IOException
zip_file - The file that contains the zip. This parameter shall never
be null.basenode - A reference to a the base node of an external
implementation.
IOException - This exception is raised when ZipFile can't be
created| Method Detail |
|---|
public String getPath()
Warning: Because the occurence number of the current node is not known in the parent, the occurence qualifier is not support by the current implementation.A possible algorithm shall be to search a reference to the current node in the list of children of the parent.
If no parent have already been set no absolute path is considered. A path considering the current node has a root node is not valid for the factory and is therefore not significant in the current implementation.
getPath in class DrbAbstractNodepublic ZipEntry[] getEntries()
public String getName()
getName in class DrbAbstractNodepublic int getIndex()
getIndex in class DrbAbstractNodepublic DrbNode getParent()
getParent in class DrbAbstractNode
protected ZipNode createNode(ZipEntry currententry,
DrbNode parent,
ZipEntry[] children)
currententry - The ZipEntryparent - The parent of this nodechildren - the list of children
public DrbNodeList getChildren()
getChildren in class DrbAbstractNodepublic final DrbAttributeList getAttributes()
getAttributes in class DrbAbstractNodeprotected InputStream getInputstream(ZipEntry zip_entry)
zip_entry - the zip entry
public boolean hasImpl(Class api)
hasImpl in class DrbNodeImplapi - The class type to test.
public Object getImpl(Class api)
getImpl in class DrbNodeImplapi - The interface (or class) to be provided.
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||