Property | Type | Description | |
---|---|---|---|
e | com.ximpleware.EOFException |
Property | Type | Description | |
---|---|---|---|
LcDepth | short | ||
VTDBuffer | com.ximpleware.FastLongBuffer | ||
VTDDepth | int | ||
XMLDoc | byte[] | ||
_l3Buffer | com.ximpleware.FastLongBuffer | ||
_l4Buffer | com.ximpleware.FastLongBuffer | ||
_l5Buffer | com.ximpleware.FastIntBuffer | ||
br | bool | ||
currentElementRecord | long | ||
default_ns | bool | ||
depth | int | ||
docLen | int | ||
docOffset | int | ||
encoding | int | ||
endOffset | int | ||
helper | bool | ||
isXML | bool | ||
l1Buffer | com.ximpleware.FastLongBuffer | ||
l2Buffer | com.ximpleware.FastLongBuffer | ||
l3Buffer | com.ximpleware.FastIntBuffer | ||
ns | bool | ||
nsBuffer1 | com.ximpleware.FastIntBuffer | ||
nsBuffer2 | com.ximpleware.FastLongBuffer | ||
nsBuffer3 | com.ximpleware.FastLongBuffer | ||
offset | int | ||
prev_offset | int | ||
r | IReader | ||
rootIndex | int | ||
shallowDepth | bool | ||
singleByteEncoding | bool | ||
tag_stack | long[] |
Property | Type | Description | |
---|---|---|---|
_getCharResolved | long | ||
_writeVTD | void | ||
addWhiteSpaceRecord | void | ||
checkAttributeUniqueness | void | ||
checkPrefix | bool | ||
checkPrefix2 | bool | ||
checkQualifiedAttributeUniqueness | void | ||
decide_encoding | void | ||
disallow_xmlns | void | ||
entityIdentifier | int | ||
finishUp | void | ||
formatLineNumber | String | ||
formatLineNumber | String | ||
getCharUnit | int | ||
handleOtherTextChar | void | ||
handleOtherTextChar2 | void | ||
identifyNsURL | int | ||
matchCPEncoding | void | ||
matchISOEncoding | void | ||
matchURL | bool | ||
matchUTFEncoding | void | ||
matchWindowsEncoding | void | ||
matchXML | bool | ||
processElementTail | int | ||
process_attr_name | void | ||
process_attr_val | int | ||
process_cdata | int | ||
process_comment | int | ||
process_dec_attr | int | ||
process_doc_type | int | ||
process_end_comment | int | ||
process_end_doc | int | ||
process_end_pi | int | ||
process_ex_seen | int | ||
process_pi_tag | int | ||
process_pi_val | int | ||
process_qm_seen | int | ||
process_start_doc | int | ||
qualifyAttributes | void | ||
qualifyElement | void | ||
writeVTD | void | ||
writeVTDText | void | ||
writeVTD_L5 | void |
Method | Description | |
---|---|---|
VTDGen ( ) : System |
VTDGen constructor method.
|
|
clear ( ) : void |
Clear internal states so VTDGEn can process the next file.
|
|
enableIgnoredWhiteSpace ( bool b ) : void |
Enable the parser to collect all white spaces, including the ignored white spaces By default, ignore white spaces are ignored
|
|
getIndexSize ( ) : long |
Precompute the size of VTD+XML index without actully generating it
|
|
getNav ( ) : |
The entity aware version of getCharAfterS This method returns the VTDNav object after parsing, it also cleans internal state so VTDGen can process the next file.
|
|
loadIndex ( System is_Renamed ) : |
This method loads the VTD+XML from an input stream
|
|
loadIndex ( byte ba ) : |
This method loads the VTD+XML from a byte array, assuming the first 32 bytes are not XML bytes (but instead header of the VTD+XML index)
|
|
loadSeparateIndex ( String XMLFileName, String VTDFileName ) : |
||
parse ( bool NS ) : void |
Generating VTD tokens and Location cache info. VTDGen conforms to XML namespace 1.0 spec
|
|
parseFile ( String fileName, bool ns ) : bool |
parse a file directly
|
|
parseHttpUrl ( String url, bool ns ) : bool |
This method grabs an XML doc from the net using HTTP get
|
|
selectLcDepth ( int i ) : void |
|
|
setDoc ( byte ba ) : void |
Set the XMLDoc container.
|
|
setDoc ( byte ba, int os, int len ) : void |
Set the XMLDoc container. Also set the offset and len of the document with respect to the container.
|
|
setDoc_BR ( byte ba ) : void |
The buffer-reuse version of setDoc The concept is to reuse LC and VTD buffer for XML parsing, instead of allocating every time
|
|
setDoc_BR ( byte ba, int os, int len ) : void |
The buffer-reuse version of setDoc The concept is to reuse LC and VTD buffer for XML parsing, instead of allocating every time
|
|
writeIndex ( System os ) : void |
This method writes the VTD+XML into an output streams
|
|
writeSeparateIndex ( String fileName ) : void | ||
writeSeparateIndex ( System os ) : void |
Method | Description | |
---|---|---|
_getCharResolved ( int byte_offset ) : long | ||
_writeVTD ( int offset, int length, int token_type, int depth ) : void | ||
addWhiteSpaceRecord ( ) : void |
|
|
checkAttributeUniqueness ( ) : void | ||
checkPrefix ( int os, int len ) : bool | ||
checkPrefix2 ( int os, int len ) : bool | ||
checkQualifiedAttributeUniqueness ( ) : void | ||
decide_encoding ( ) : void |
A private method that detects the BOM and decides document encoding
|
|
disallow_xmlns ( int byte_offset ) : void | ||
entityIdentifier ( ) : int |
This method will detect whether the entity is valid or not and increment offset.
|
|
finishUp ( ) : void |
Write the remaining portion of LC info
|
|
formatLineNumber ( ) : String |
Format the string indicating the position (line number:offset)of the offset if there is an exception.
|
|
formatLineNumber ( int os ) : String | ||
getCharUnit ( int byte_offset ) : int | ||
handleOtherTextChar ( int ch ) : void | ||
handleOtherTextChar2 ( int ch ) : void | ||
identifyNsURL ( int byte_offset, int length ) : int | ||
matchCPEncoding ( ) : void | ||
matchISOEncoding ( ) : void | ||
matchURL ( int bos1, int len1, int bos2, int len2 ) : bool | ||
matchUTFEncoding ( ) : void | ||
matchWindowsEncoding ( ) : void | ||
matchXML ( int byte_offset ) : bool | ||
processElementTail ( bool helper ) : int | ||
process_attr_name ( ) : void | ||
process_attr_val ( ) : int | ||
process_cdata ( ) : int |
This private method processes CDATA section
|
|
process_comment ( ) : int |
This private method process comment
|
|
process_dec_attr ( ) : int |
This private method processes declaration attributes
|
|
process_doc_type ( ) : int |
This private method process DTD
|
|
process_end_comment ( ) : int |
This private method process the comment after the root document
|
|
process_end_doc ( ) : int | ||
process_end_pi ( ) : int |
This private method processes PI after root document
|
|
process_ex_seen ( ) : int | ||
process_pi_tag ( ) : int |
This private method processes PI tag
|
|
process_pi_val ( ) : int |
This private method processes PI val
|
|
process_qm_seen ( ) : int | ||
process_start_doc ( ) : int | ||
qualifyAttributes ( ) : void | ||
qualifyElement ( ) : void | ||
writeVTD ( int offset, int length, int token_type, int depth ) : void |
Write the VTD and LC into their storage container.
|
|
writeVTDText ( int offset, int length, int token_type, int depth ) : void | ||
writeVTD_L5 ( int offset, int length, int token_type, int depth ) : void |
public enableIgnoredWhiteSpace ( bool b ) : void | ||
b | bool | |
return | void |
public loadIndex ( System is_Renamed ) : |
||
is_Renamed | System | |
return |
public loadSeparateIndex ( String XMLFileName, String VTDFileName ) : |
||
XMLFileName | String | |
VTDFileName | String | |
return |
public parse ( bool NS ) : void | ||
NS | bool | boolean Enable namespace or not /// |
return | void |
public parseFile ( String fileName, bool ns ) : bool | ||
fileName | String | Name of the file to be parsed |
ns | bool | namespace awareness |
return | bool |
public parseHttpUrl ( String url, bool ns ) : bool | ||
url | String | |
ns | bool | namespace aware or not |
return | bool |
public setDoc ( byte ba, int os, int len ) : void | ||
ba | byte | byte[] /// |
os | int | int (in byte) /// |
len | int | int (in byte) /// |
return | void |
public setDoc_BR ( byte ba, int os, int len ) : void | ||
ba | byte | byte[] /// |
os | int | int (in byte) /// |
len | int | int (in byte) /// /// |
return | void |
public writeSeparateIndex ( String fileName ) : void | ||
fileName | String | |
return | void |
public writeSeparateIndex ( System os ) : void | ||
os | System | |
return | void |
protected FastLongBuffer,com.ximpleware VTDBuffer | ||
return | com.ximpleware.FastLongBuffer |
protected FastLongBuffer,com.ximpleware _l3Buffer | ||
return | com.ximpleware.FastLongBuffer |
protected FastLongBuffer,com.ximpleware _l4Buffer | ||
return | com.ximpleware.FastLongBuffer |
protected FastIntBuffer,com.ximpleware _l5Buffer | ||
return | com.ximpleware.FastIntBuffer |
protected FastLongBuffer,com.ximpleware l1Buffer | ||
return | com.ximpleware.FastLongBuffer |
protected FastLongBuffer,com.ximpleware l2Buffer | ||
return | com.ximpleware.FastLongBuffer |
protected FastIntBuffer,com.ximpleware l3Buffer | ||
return | com.ximpleware.FastIntBuffer |
protected FastIntBuffer,com.ximpleware nsBuffer1 | ||
return | com.ximpleware.FastIntBuffer |
protected FastLongBuffer,com.ximpleware nsBuffer2 | ||
return | com.ximpleware.FastLongBuffer |
protected FastLongBuffer,com.ximpleware nsBuffer3 | ||
return | com.ximpleware.FastLongBuffer |