| Modifier and Type | Field and Description |
|---|---|
| protected final AttributeCollector | |
| protected int | |
| protected final boolean | |
| protected boolean | |
| protected final ReaderConfig | |
| protected ElementScope | _currElem
Information about the current element on the stack |
| protected int | _currNsCount
This is a temporary state variable, valid during START_ELEMENT event. |
| protected int | _currRow
The row on which the character to read next is on. |
| protected int | |
| protected NsBinding | _defaultNs
Default namespace binding is a per-document singleton, like explicit bindings, and used for elements (never for attributes). |
| protected int | _depth
Number of START_ELEMENT events returned for which no END_ELEMENT has been returned; including current event. |
| protected boolean | _entityPending
Flag set to indicate that an entity is pending |
| protected boolean | _isEmptyTag
Flag that is used if the current state is |
| protected FixedNsContext | _lastNsContext
Last returned |
| protected NsDeclaration | _lastNsDecl
Pointer to the last namespace declaration encountered. |
| protected char[] | _nameBuffer
Similarly, need a char buffer for actual String construction (in future, could perhaps use StringBuilder?). |
| protected PName[] | _nsBindingCache
Although unbound pname instances can be easily and safely reused, bound ones are per-document. |
| protected int | |
| protected NsBinding[] | _nsBindings
Array containing all prefix bindings needed within the current document, so far (if any). |
| protected int | |
| protected long | _pastBytesOrChars
Number of bytes that were read and processed before the contents of the current buffer; used for calculating absolute offsets. |
| protected String | _publicId
Public id of the current event (DTD), if any. |
| protected int | _rowStartOffset
Offset used to calculate the column value given current input buffer pointer. |
| protected long | _startColumn
Current column at start of current (last returned) token |
| protected long | _startRawOffset
Offset (in chars or bytes) at start of current token |
| protected long | _startRow
Current row at start of current (last returned) token |
| protected String | _systemId
System id of the current event (DTD), if any. |
| protected final TextBuilder | _textBuilder
Textual content of the current event |
| protected boolean | |
| protected PName | _tokenName
Current name associated with the token, if any. |
| protected final boolean | _xml11
Whether validity checks (wrt. |
| private static final int | |
| private static final int | BIND_CACHE_SIZE
Size of the bind cache can be reasonably small, and should still get high enough hit rate |
| private static final int | BIND_MISSES_TO_ACTIVATE_CACHE
Let's activate cache quite soon, no need to wait for hundreds of misses; just try to avoid cache construction if all we get is soap envelope element or such. |
| protected final String | CDATA_STR
String that identifies CDATA section (after "<![" prefix) |
| 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 | MAX_UNICODE_CHAR
This constant defines the highest Unicode character allowed
in XML content.
|
| public static final int | TOKEN_EOI
This token type signifies end-of-input, in cases where it can be returned. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| protected void | |
| protected final PName | |
| protected final void | |
| protected final void | checkImmutableBinding(String prefix, String uri)
Method called when an immutable ns prefix (xml, xmlns) is encountered. |
| public final void | close(boolean
True if the underlying input source is
to be closed, independent of whether auto-close has been set
to true via configuration (or if the scanner manages the input
source) forceCloseSource)Method called at point when the parsing process has ended (either by encountering end of the input, or via explicit close), and buffers can and should be released. |
| public final byte[] | |
| public final void | |
| public final int | Returns: Number of tokens decodedMethod called to decode the attribute value that consists of zero or more space-separated tokens. |
| public final int | decodeElements(TypedArrayDecoder tad, boolean
If true, need to tell text buffer to reset its decoding
state; if false, shouldn't reset)Method called by the stream reader to decode space-separated tokens that are part of the current text event, using given decoder. |
| public final int | |
| private NsDeclaration | |
| protected final NsBinding | findOrCreateBinding(String prefix)
Method called when a namespace declaration needs to find the binding object (essentially a per-prefix-per-document canonical container object) |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | finishToken()
This method is called to ensure that the current token/event has been completely parsed, such that we have all the data needed to return it (textual content, PI data, comment text etc) |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public AttributeCollector | |
| public final int | |
| public final String | |
| public final String | |
| public final String | |
| public final String | |
| public final QName | |
| public final String | |
| public final String | |
| public final String | |
| public ReaderConfig | |
| public abstract int | |
| public final int | |
| public abstract XMLStreamLocation2 | |
| public final int | |
| public final String | |
| public final String | |
| public abstract long | |
| public abstract long | |
| public XMLStreamLocation2 | |
| public final String | |
| public final String | |
| public final PName | |
| public final String | |
| public final String | |
| public final String | |
| public String | getNamespaceURI(String
prefix to look up prefix)Implements javax. |
| public final NamespaceContext | |
| public final int | |
| public String | getPrefix(String
URI of Namespace to lookup nsURI)Implements javax. |
| public Iterator | getPrefixes(String
URI of Namespace to lookup nsURI)Implements javax. |
| public final QName | |
| public abstract long | |
| public abstract long | |
| public final XMLStreamLocation2 | |
| public final String | |
| public final int | |
| public final char[] | |
| public final int | |
| public final int | |
| protected char | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| protected abstract boolean | |
| protected final void | loadMoreGuaranteed()
Method that tries to load at least one more byte into buffer; and if that fails, throws an appropriate EOI exception. |
| protected final void | |
| public abstract int | |
| public abstract int | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | reportMissingPISpace(int ch)
Called when there's an unexpected char after PI target (non-ws,
not part of |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | reportUnexpandedEntityInAttr(PName name, boolean isNsDecl)
Method called when a call to expand an entity within attribute value fails to expand it. |
| protected void | |
| public final void | resetForDecoding(Base64Variant v, CharArrayBase64Decoder dec, boolean firstChunk)
Method called by the stream reader to reset given base64 decoder with data from the current text event. |
| protected abstract void | |
| protected abstract boolean | |
| protected abstract boolean | Returns: True, if an unexpanded entity was encountered (and is now pending)Secondary skip method called after primary text segment has been skipped, and we are in coalescing mode. |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected final boolean | Returns: True If by skipping we also figured out following event type (and assigned its type to _currToken); false if that remains to be doneThis method is called to essentially skip remaining of the current token (data of PI etc) |
| protected void | |
| protected void | |
| protected void | |
| protected final void |