|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ximpleware.extended.VTDGenHuge
public class VTDGenHuge
VTDGenHuge implementation supporting extended VTD (256GB file size). Current support built-in entities only It parses DTD, but doesn't resolve declared entities
| Constructor Summary | |
|---|---|
VTDGenHuge()
VTDGenHuge constructor method. |
|
| Method Summary | |
|---|---|
void |
clear()
Clear internal states so VTDGEn can process the next file. |
VTDNavHuge |
getNav()
This method returns the VTDNavHuge object after parsing, it also cleans internal state so VTDGenHuge can process the next file. |
void |
parse(boolean NS)
Generating VTD tokens and Location cache info. |
boolean |
parseFile(String fileName,
boolean ns)
parseFile with default mode set to IN_MEMORY |
boolean |
parseFile(String fileName,
boolean ns,
int mode)
This method parses the XML file and returns a boolean indicating if it is successful or not. |
void |
setDoc(IByteBuffer xb1)
Set the XMLDoc container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int IN_MEMORY
public static final int MEM_MAPPED
public static final int TOKEN_STARTING_TAG
public static final int TOKEN_ENDING_TAG
public static final int TOKEN_ATTR_NAME
public static final int TOKEN_ATTR_NS
public static final int TOKEN_ATTR_VAL
public static final int TOKEN_CHARACTER_DATA
public static final int TOKEN_COMMENT
public static final int TOKEN_PI_NAME
public static final int TOKEN_PI_VAL
public static final int TOKEN_DEC_ATTR_NAME
public static final int TOKEN_DEC_ATTR_VAL
public static final int TOKEN_CDATA_VAL
public static final int TOKEN_DTD_VAL
public static final int TOKEN_DOCUMENT
public static final int FORMAT_UTF8
public static final int FORMAT_ASCII
public static final int FORMAT_ISO_8859_1
public static final int FORMAT_ISO_8859_2
public static final int FORMAT_ISO_8859_3
public static final int FORMAT_ISO_8859_4
public static final int FORMAT_ISO_8859_5
public static final int FORMAT_ISO_8859_6
public static final int FORMAT_ISO_8859_7
public static final int FORMAT_ISO_8859_8
public static final int FORMAT_ISO_8859_9
public static final int FORMAT_ISO_8859_10
public static final int FORMAT_ISO_8859_11
public static final int FORMAT_ISO_8859_12
public static final int FORMAT_ISO_8859_13
public static final int FORMAT_ISO_8859_14
public static final int FORMAT_ISO_8859_15
public static final int FORMAT_ISO_8859_16
public static final int FORMAT_WIN_1250
public static final int FORMAT_WIN_1251
public static final int FORMAT_WIN_1252
public static final int FORMAT_WIN_1253
public static final int FORMAT_WIN_1254
public static final int FORMAT_WIN_1255
public static final int FORMAT_WIN_1256
public static final int FORMAT_WIN_1257
public static final int FORMAT_WIN_1258
public static final int FORMAT_UTF_16LE
public static final int FORMAT_UTF_16BE
protected boolean ns
protected int VTDDepth
protected int encoding
protected long offset
protected int depth
protected long prev_offset
protected int rootIndex
protected IByteBuffer xb
protected FastLongBuffer VTDBuffer
protected FastLongBuffer l1Buffer
protected FastLongBuffer l2Buffer
protected FastIntBuffer l3Buffer
protected boolean br
protected long docLen
protected long endOffset
protected long[] tag_stack
public long[] attr_name_array
public static final int MAX_DEPTH
protected long docOffset
public static final int MAX_PREFIX_LENGTH
public static final int MAX_QNAME_LENGTH
public static final int MAX_TOKEN_LENGTH
protected com.ximpleware.extended.IReader r
| Constructor Detail |
|---|
public VTDGenHuge()
| Method Detail |
|---|
public void clear()
public VTDNavHuge getNav()
public boolean parseFile(String fileName,
boolean ns,
int mode)
fileName - ns - namespace aware or notmode - indicates whether the file is loaded in memory of memory mapped
public boolean parseFile(String fileName,
boolean ns)
fileName - ns -
public void parse(boolean NS)
throws EncodingExceptionHuge,
EOFExceptionHuge,
EntityExceptionHuge,
ParseExceptionHuge
NS - boolean Enable namespace or not
ParseExceptionHuge - Super class for any exceptions during parsing.
EOFExceptionHuge - End of file exception.
EntityExceptionHuge - Entity resolution exception.
EncodingExceptionHuge - UTF/native encoding exception.public void setDoc(IByteBuffer xb1)
XMLBuffer - xb1
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||