Package | Description |
---|---|
com.ximpleware |
Modifier and Type | Method and Description |
---|---|
VTDNav |
VTDNav.cloneNav()
Clone the VTDNav instance to get with shared XML, VTD and LC buffers
The node position is also copied from the original instance
|
VTDNav |
VTDNav.duplicateNav()
Duplicate the VTDNav instance with shared XML, VTD and LC buffers
This method may be useful for parallel XPath evaluation
The node Position is at root element
|
VTDNav |
AutoPilot.getNav() |
VTDNav |
VTDGen.getNav()
This method returns the VTDNav object after parsing, it also cleans
internal state so VTDGen can process the next file.
|
VTDNav |
BookMark.getNav()
This method returns the embedded VTDNav Object
|
VTDNav |
VTDGen.loadIndex(byte[] ba)
This method loads the VTD+XML from a byte array
|
VTDNav |
VTDGen.loadIndex(java.io.InputStream is)
This method loads the VTD+XML from an input stream
|
VTDNav |
VTDGen.loadIndex(java.lang.String fileName)
This method loads the VTD+XML from a file
|
VTDNav |
VTDGen.loadSeparateIndex(java.lang.String XMLFileName,
java.lang.String VTDIndexName)
Load the separate VTD index and XmL file.
|
VTDNav |
XMLModifier.outputAndReparse()
outAndReparse writes updated XML content into a new byte
array, then parse and return a new VTDNav object
|
Modifier and Type | Method and Description |
---|---|
void |
NodeRecorder.bind(VTDNav vn1) |
void |
XMLModifier.bind(VTDNav masterDocument)
Attach master document to this instance of XMLModifier
so all the operations occuring aftewards are based on this instance
of VTDNav
|
void |
AutoPilot.bind(VTDNav vnv)
Bind is to replace rebind() and setVTDNav() It resets the internal state
of AutoPilot so one can attach a VTDNav object to the autopilot
|
void |
BookMark.bind(VTDNav vn)
bind a BookMark object to a VTDNav object
the cursor position is set to an invalid state
|
int |
VTDNav.compareTokens_IgnoreCase(int i1,
VTDNav vn2,
int i2)
Since Version 2.13 This method compares two VTD tokens of VTDNav
objects while ignoring the case.
|
int |
VTDNav.compareTokens(int i1,
VTDNav vn2,
int i2)
Since Version 2.0 This method compares two VTD tokens of VTDNav
objects The behavior of this method is like compare the strings
corresponds to i1 and i2, meaning for text or attribute val, entities
will be converted into the corresponding char, return 0 if two tokens
are the identical when converted to Unicode String using toString()
respectively
|
void |
XMLModifier.insertAfterElement(VTDNav vn,
int contentOffset,
int contentLen)
This method will first call getCurrentIndex() to get the cursor index value
then insert the transcoded array of bytes of a segment of the byte array b after the element
the VTDNav object is the container of the XML document in byte array
|
void |
XMLModifier.insertAfterElement(VTDNav vn,
long l1)
This method will first call getCurrentIndex() to get the cursor index value
then insert a segment of the byte array b (contained in vn, and
transcode into a byte array) after the element,
l1 (a long)'s upper 32 bit is length, lower 32 bit is offset
|
void |
XMLModifier.insertAfterHead(VTDNav vn,
int contentOffset,
int contentLen)
This method will insert a segment of the byte array b (contained in vn, and
transcode into a byte array) after the head of cursor element,
|
void |
XMLModifier.insertAfterHead(VTDNav vn,
long l1)
This method will insert a segment of the byte array b (contained in vn, and
transcode into a byte array) after the head of cursor element,
|
void |
XMLModifier.insertBeforeElement(VTDNav vn,
int contentOffset,
int contentLen)
This method will first call getCurrentIndex() to get the cursor index value
then insert the transcoded representation of a segment of the byte array contained
in vn before the element
|
void |
XMLModifier.insertBeforeElement(VTDNav vn,
long l)
This method will first call getCurrentIndex() to get the cursor index value
then insert the transcoded representation of a segment of the byte array contained in
vn before the element
l1 (a long)'s upper 32 bit is length, lower 32 bit is offset
|
void |
XMLModifier.insertBeforeTail(VTDNav vn,
int contentOffset,
int contentLen)
This method will insert a segment of the byte array (contained in vn, and
transcode into a byte array) before the tail of cursor element,
|
void |
XMLModifier.insertBeforeTail(VTDNav vn,
long l1)
This method will insert a segment of the byte array (contained in vn, and
transcode into a byte array) before the tail of cursor element,
l1 (a long)'s upper 32 bit is length, lower 32 bit is offset
|
boolean |
VTDNav.matchTokens_IgnoreCase(int i1,
VTDNav vn2,
int i2)
Since version 2.13
This method matches two VTD tokens of VTDNav objects while ignore the case
|
boolean |
VTDNav.matchTokens(int i1,
VTDNav vn2,
int i2)
This method matches two VTD tokens of VTDNav objects
|
boolean |
BookMark.recordCursorPosition(VTDNav vn)
Record the cursor position
This method is implemented to be lenient on loading in
that it can load nodes from any VTDNav object
if vn is null, return false
|
boolean |
BookMark.setCursorPosition(VTDNav vn)
set cursor position
This method can only set the cursor position
of an VTDNav object identical to its internal copy
|
void |
TextIter.touch(VTDNav v)
Obtain the current navigation position and element info from VTDNav.
|
void |
XMLModifier.updateToken(int index,
VTDNav vn,
int contentOffset,
int contentLen)
Update token with the transcoded representation of
a segment of byte array contained in vn (in terms of offset and length)
|
Constructor and Description |
---|
AutoPilot(VTDNav v)
AutoPilot constructor comment.
|
BookMark(VTDNav vn)
BookMark constructor with an instance of vn
as input
|
NodeRecorder(VTDNav vn1) |
XMLModifier(VTDNav masterDocument)
Constructor for XMLModifier that takes VTDNav object as the master document
|