| Modifier and Type | Field and Description |
|---|---|
| protected XmlCharTypes | _charTypes
This is a simple container object that is used to access the decoding tables for characters. |
| protected int | _currQuad
Bytes parsed for the current, incomplete, quad |
| protected int | _currQuadBytes
Number of bytes pending/buffered, stored in |
| protected boolean | |
| protected boolean | |
| protected PName | |
| protected int | _elemAttrPtr
Pointer for the next character of currently being parsed value within attribute value buffer |
| protected byte | |
| protected int | _elemNsPtr
Pointer for the next character of currently being parsed namespace URI for the current namespace declaration |
| protected boolean | _endOfInput
Flag that is sent when calling application indicates that there will be no more input to parse. |
| protected int | _entityValue
Entity value accumulated so far |
| protected boolean | _inDtdDeclaration
Flag that indicates whether we are inside a declaration during parsing of internal DTD subset. |
| protected int | _nextEvent
Due to asynchronous nature of parsing, we may know what event we are trying to parse, even if it's not yet complete. |
| protected int | _pendingInput
There are some multi-byte combinations that must be handled as a unit: CR+LF linefeeds, multi-byte UTF-8 characters, and multi-character end markers for comments and PIs. |
| protected int[] | _quadBuffer
This buffer is used for name parsing. |
| protected int | _quadCount
Number of complete quads parsed for current name (quads
themselves are stored in |
| protected int | _state
In addition to the event type, there is need for additional state information |
| protected int | _surroundingEvent
For token/state combinations that are 'shared' between events (or embedded in them), this is where the surrounding event state is retained. |
| protected ByteBasedPNameTable | _symbols
For now, symbol table contains prefixed names. |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | STATE_DEFAULT
Default starting state for many events/contexts -- nothing has been seen so far, no event incomplete. |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | STATE_PROLOG_INITIAL
State in which a less-than sign has been seen |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | _activateEncoding()
Initialization method to call when encoding has been definitely figured out, from XML declarations, or, from lack of one (using defaults). |
| protected void | _closeSource()
Implements abstract com. |
| protected abstract byte | |
| protected final PName | |
| protected abstract byte | |
| private final PName | |
| private final PName | |
| protected abstract byte | |
| protected void | |
| protected int | _startDocumentNoXmlDecl()
Helper method called when it is determined that the document does NOT start with an xml declaration. |
| protected final PName | |
| protected abstract boolean | |
| protected void | |
| protected int | decodeCharForError(byte b)
Implements abstract com. |
| public void | endOfInput()
Implements com. |
| protected final PName | findPName(int
Word with last 0 to 3 bytes of the PName; not included
in the quad array lastQuad, int Number of bytes contained in lastQuad; 0 to 3. lastByteCount)Method called to process a sequence of bytes that is likely to be a PName. |
| protected void | |
| protected abstract void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected final void | finishToken()
Implements abstract com. |
| protected abstract boolean | |
| protected abstract int | |
| private int | |
| protected abstract boolean | |
| protected abstract boolean | |
| protected abstract boolean | |
| protected abstract int | |
| private final int | |
| protected abstract int | |
| protected abstract int | |
| private int | Returns: Completed token (START_DOCUMENT), if fully parsed; incomplete (EVENT_INCOMPLETE) otherwiseMethod called to complete parsing of XML declaration, once it has been reliably detected. |
| protected boolean | |
| public final int | nextFromProlog(boolean isProlog)
Implements abstract com. |
| private final boolean | |
| protected abstract PName | |
| protected abstract PName | |
| protected boolean | Returns: True if we managed to parse the whole pseudo-attributeMethod called to try to parse an XML pseudo-attribute value. |
| protected void | |
| protected void | |
| protected abstract boolean | Returns: True if the whole characters segment was succesfully skipped; false if notImplements abstract com. |
| protected void | |
| protected void | |
| protected void | |
| protected abstract int | Returns: Event type detected; either CHARACTERS, if at least one full character was decoded (and can be returned), EVENT_INCOMPLETE if not (part of a multi-byte character split across input buffer boundary)Method called to initialize state for CHARACTERS event, after just a single byte has been seen. |
| private final Boolean | Returns: null if parsing is inconclusive (may or may not be XML declaration); Boolean.TRUE if complete XML declaration, and Boolean.FALSE if something elseMethod that deals with recognizing XML declaration, but not with parsing its contents. |
| protected int | |
| protected boolean | Returns: true if the character is valid for use in the Public ID of an XML doctype declarationA character c)Checks that a character for a PublicId |
| protected void | verifyAndAppendEntityCharacter(int charFromEntity)
Method called to verify validity of given character (from entity) and append it to the text buffer |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void |