|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.storage.dom.DOMFileIterator
public final class DOMFileIterator
Iterate through all nodes of a document in the DOM storage. Returns the
raw data of the node in a Value
. Use class
NodeIterator
to get node objects instead of
raw data.
The DOM file is locked to locate the data and released afterwards. Before
working with the returned data, you should get a copy by calling value.getData().
Constructor Summary | |
---|---|
DOMFileIterator(java.lang.Object lock,
DOMFile db,
long address)
|
|
DOMFileIterator(java.lang.Object lock,
DOMFile db,
NodeProxy node)
|
Method Summary | |
---|---|
long |
currentAddress()
Returns the internal virtual address of the node at the iterator's current position. |
boolean |
hasNext()
Are there more nodes to be read? |
java.lang.Object |
next()
Returns the raw data of the next node in the sequence. |
void |
remove()
|
void |
setTo(long address)
Reposition the iterate at a given address. |
void |
setTo(NodeProxy node)
Reposition the iterator at the address of the proxy node. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DOMFileIterator(java.lang.Object lock, DOMFile db, NodeProxy node) throws BTreeException, java.io.IOException
BTreeException
java.io.IOException
public DOMFileIterator(java.lang.Object lock, DOMFile db, long address) throws BTreeException, java.io.IOException
BTreeException
java.io.IOException
Method Detail |
---|
public long currentAddress()
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
public void setTo(NodeProxy node)
node
- The new to valuepublic void setTo(long address)
address
- The new to value
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |