public class NodeRecorder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BUF_SZ_EXPO |
Constructor and Description |
---|
NodeRecorder()
The parameter-less constructor
|
NodeRecorder(VTDNav vn1) |
Modifier and Type | Method and Description |
---|---|
void |
bind(VTDNav 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
|
int |
nodeCount() |
void |
record()
This function records the position of VN into the 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
|
void |
showContent() |
public static final int BUF_SZ_EXPO
public NodeRecorder()
public NodeRecorder(VTDNav vn1)
vn1
- public void bind(VTDNav vn1)
public void clear()
public int iterate()
public int nodeCount()
public void record()
public void resetPointer()
public void showContent()