| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private final int | collectValue(int attrPtr, byte quoteByte, PName attrName)
This method implements the tight loop for parsing attribute values. |
| public int | decodeCharForError(byte b)
Implements abstract com. |
| private final int | Returns: Either decoded character (if positive int); or negated value of a high-order char (one that needs surrogate pair)
|
| private final int | |
| private final int | |
| private final int | |
| private final int | Returns: Character value minus 0x10000; this so that caller can readily expand it to actual surrogates
|
| protected final void | |
| protected final void | |
| protected final void | |
| protected final void | |
| protected final void | finishCoalescedText()
Method that gets called after a primary text segment (of type CHARACTERS or CDATA, not applicable to SPACE) has been read in text buffer. |
| protected final void | |
| protected final void | finishDTD(boolean copyContents)
Implements abstract com. |
| protected final void | |
| protected final void | finishSpace()
Implements abstract com. Note this method is only called in cases where it is known that only space chars are legal. |
| protected final void | finishToken()
Implements abstract com. |
| protected final int | Returns: 0 if a general parsed entity encountered; integer value of a (valid) XML content character otherwiseTrue, if reference is from attribute value; false
if from normal text content inAttr)Implements abstract com. |
| private void | handleNsDeclaration(PName name, byte quoteByte)
Method called from the main START_ELEMENT handling loop, to parse namespace URI values. |
| protected int | handleStartElement(byte b)
Implements abstract com. |
| protected String | parsePublicId(byte quoteChar)
Implements abstract com. |
| protected String | parseSystemId(byte quoteChar)
Implements abstract com. |
| protected void | |
| protected final void | |
| protected final boolean | |
| protected final boolean | Returns: True if we encountered an unexpandable entityImplements abstract com. |
| protected final void | |
| protected final void | |
| protected final void | |
| private final void | |
| private final void | |
| private final void | |
| private final void |
| Utf8Scanner | back to summary |
|---|---|
| public Utf8Scanner(ReaderConfig cfg, InputStream in, byte[] buffer, int ptr, int last) | |
| collectValue | back to summary |
|---|---|
| private final int collectValue(int attrPtr, byte quoteByte, PName attrName) throws XMLStreamException This method implements the tight loop for parsing attribute values. It's off-lined from the main start element method to simplify main method, which makes code more maintainable and possibly easier for JIT/HotSpot to optimize. | |
| decodeCharForError | back to summary |
|---|---|
| public int decodeCharForError(byte b) throws XMLStreamException Implements abstract com. Method called called to decode a full UTF-8 characters, given its first byte. Note does not do any validity checks, since this is only to be used for informational purposes (often when an error has already been encountered)
| |
| decodeMultiByteChar | back to summary |
|---|---|
private final int decodeMultiByteChar(int c, int ptr) throws XMLStreamException
| |
| decodeUtf8_2 | back to summary |
|---|---|
| private final int decodeUtf8_2(int c) throws XMLStreamException | |
| decodeUtf8_3 | back to summary |
|---|---|
| private final int decodeUtf8_3(int c1) throws XMLStreamException | |
| decodeUtf8_3fast | back to summary |
|---|---|
| private final int decodeUtf8_3fast(int c1) throws XMLStreamException | |
| decodeUtf8_4 | back to summary |
|---|---|
private final int decodeUtf8_4(int c) throws XMLStreamException
| |
| finishCData | back to summary |
|---|---|
| protected final void finishCData() throws XMLStreamException Implements abstract com.
| |
| finishCharacters | back to summary |
|---|---|
| protected final void finishCharacters() throws XMLStreamException Implements abstract com.
| |
| finishCoalescedCData | back to summary |
|---|---|
| protected final void finishCoalescedCData() throws XMLStreamException | |
| finishCoalescedCharacters | back to summary |
|---|---|
| protected final void finishCoalescedCharacters() throws XMLStreamException | |
| finishCoalescedText | back to summary |
|---|---|
| protected final void finishCoalescedText() throws XMLStreamException Method that gets called after a primary text segment (of type CHARACTERS or CDATA, not applicable to SPACE) has been read in text buffer. Method has to see if the following event would be textual as well, and if so, read it (and any other following textual segments). | |
| finishComment | back to summary |
|---|---|
| protected final void finishComment() throws XMLStreamException Implements abstract com.
| |
| finishDTD | back to summary |
|---|---|
| protected final void finishDTD(boolean copyContents) throws XMLStreamException Implements abstract com. When this method gets called we know that we have an internal subset, and that the opening '[' has already been read.
| |
| finishPI | back to summary |
|---|---|
| protected final void finishPI() throws XMLStreamException Implements abstract com.
| |
| finishSpace | back to summary |
|---|---|
| protected final void finishSpace() throws XMLStreamException Implements abstract com. Note this method is only called in cases where it is known that only space chars are legal. Thus, encountering a non-space is an error (WFC or VC). However, an end-of-input is ok.
| |
| finishToken | back to summary |
|---|---|
| protected final void finishToken() throws XMLStreamException Implements abstract com. Doc from com. 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)
| |
| handleEntityInText | back to summary |
|---|---|
| protected final int handleEntityInText(boolean inAttr) throws XMLStreamException Implements abstract com. Method called when an ampersand is encounter in text segment. Method needs to determine whether it is a pre-defined or character entity (in which case it will be expanded into a single char or surrogate pair), or a general entity (in which case it will most likely be returned as ENTITY_REFERENCE event)
| |
| handleNsDeclaration | back to summary |
|---|---|
| private void handleNsDeclaration(PName name, byte quoteByte) throws XMLStreamException Method called from the main START_ELEMENT handling loop, to parse namespace URI values. | |
| handleStartElement | back to summary |
|---|---|
| protected int handleStartElement(byte b) throws XMLStreamException Implements abstract com. Doc from com. Parsing of start element requires parsing of the element name (and attribute names), and is thus encoding-specific.
| |
| parsePublicId | back to summary |
|---|---|
| protected String parsePublicId(byte quoteChar) throws XMLStreamException Implements abstract com. Parsing of public ids is bit more complicated than that of system ids, since white space is to be coalesced.
| |
| parseSystemId | back to summary |
|---|---|
| protected String parseSystemId(byte quoteChar) throws XMLStreamException Implements abstract com.
| |
| reportInvalidOther | back to summary |
|---|---|
| protected void reportInvalidOther(int mask, int ptr) throws XMLStreamException | |
| skipCData | back to summary |
|---|---|
| protected final void skipCData() throws XMLStreamException Implements abstract com.
| |
| skipCharacters | back to summary |
|---|---|
| protected final boolean skipCharacters() throws XMLStreamException Implements abstract com.
| |
| skipCoalescedText | back to summary |
|---|---|
| protected final boolean skipCoalescedText() throws XMLStreamException Implements abstract com. Method that gets called after a primary text segment (of type CHARACTERS or CDATA, not applicable to SPACE) has been skipped. Method has to see if the following event would be textual as well, and if so, skip it (and any other following textual segments).
| |
| skipComment | back to summary |
|---|---|
| protected final void skipComment() throws XMLStreamException Implements abstract com.
| |
| skipPI | back to summary |
|---|---|
| protected final void skipPI() throws XMLStreamException Implements abstract com.
| |
| skipSpace | back to summary |
|---|---|
| protected final void skipSpace() throws XMLStreamException Implements abstract com.
| |
| skipUtf8_2 | back to summary |
|---|---|
| private final void skipUtf8_2(int c) throws XMLStreamException | |
| skipUtf8_3 | back to summary |
|---|---|
| private final void skipUtf8_3(int c) throws XMLStreamException | |
| skipUtf8_4 | back to summary |
|---|---|
| private final void skipUtf8_4(int c) throws XMLStreamException | |
| skipUtf8_4Slow | back to summary |
|---|---|
| private final void skipUtf8_4Slow(int c) throws XMLStreamException | |