|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ximpleware.extended.NodeRecorderHuge
public class NodeRecorderHuge
NodeRecorderHuge allows one to record the node position of VTDNavHuge. However, the internal representation of node is variable in length and recording a large number of nodes could consume much memory. It is a bad idea to record every node of an document. So be careful when using it.
Field Summary | |
---|---|
static int |
BUF_SZ_EXPO
|
Constructor Summary | |
---|---|
NodeRecorderHuge()
The parameter-less constructor |
|
NodeRecorderHuge(VTDNavHuge vn1)
|
Method Summary | |
---|---|
void |
bind(VTDNavHuge vn1)
|
void |
clear()
Clear will erase all the nodes, internal buffers are reused |
int |
iterate()
This method set the cursor in VTDNav to the nodes as recorded in NodeRecorder, and return the output of "getCurrentIndex()" It is important to notice that you can only go forward, not backward |
void |
record()
This function records the position of VN into an internal buffer |
void |
resetPointer()
resetPointer() will set the pointer to the first node in NodeRecorder This method is called when one wants to read the nodes in the nodeRecorder |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BUF_SZ_EXPO
Constructor Detail |
---|
public NodeRecorderHuge()
public NodeRecorderHuge(VTDNavHuge vn1)
vn1
- Method Detail |
---|
public void bind(VTDNavHuge vn1)
public void clear()
public int iterate()
public void record()
public void resetPointer()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |