| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Reader | _in
Underlying Reader to use for reading content. |
| pack-priv final char[] | |
| private int | _inputLast
Offset of the first character after the end of valid buffer contents. |
| private int | |
| pack-priv static final char | |
| pack-priv static final int | DEFAULT_BUFFER_SIZE
Whether to use a bigger (4000, ie. |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final XmlScanner | bootstrap()
Implements abstract com. |
| protected int | Returns: First character that does not match expected, if any; CHAR_NULL if match succeededImplements abstract com. |
| public static CharSourceBootstrapper | |
| public static CharSourceBootstrapper | |
| public XmlScanner | |
| protected Location | |
| protected int | |
| protected int | getNextAfterWs(boolean reqWs)
Implements abstract com. |
| protected boolean | |
| protected void | |
| protected char | |
| protected void | |
| protected int | readQuotedValue(char[] kw, int quoteChar)
Implements abstract com. |
| protected void | |
| protected String |
| _in | back to summary |
|---|---|
| pack-priv final Reader _in Underlying Reader to use for reading content. | |
| _inputBuffer | back to summary |
|---|---|
| pack-priv final char[] _inputBuffer | |
| _inputLast | back to summary |
|---|---|
| private int _inputLast Offset of the first character after the end of valid buffer contents. | |
| _inputPtr | back to summary |
|---|---|
| private int _inputPtr | |
| CHAR_BOM_MARKER | back to summary |
|---|---|
| pack-priv static final char CHAR_BOM_MARKER | |
| DEFAULT_BUFFER_SIZE | back to summary |
|---|---|
| pack-priv static final int DEFAULT_BUFFER_SIZE Whether to use a bigger (4000, ie. 8k) or smaller (2000 -> 4k) buffer size? | |
| CharSourceBootstrapper | back to summary |
|---|---|
| private CharSourceBootstrapper(ReaderConfig cfg, Reader r) | |
| CharSourceBootstrapper | back to summary |
|---|---|
| private CharSourceBootstrapper(ReaderConfig cfg, char[] buffer, int start, int len) | |
| bootstrap | back to summary |
|---|---|
| public final XmlScanner bootstrap() throws XMLStreamException Implements abstract com. Doc from com. Main bootstrapping method, which will try to open the underlying input source, check its encoding, read xml declaration if there is one, and finally create a scanner for actual parsing.
| |
| checkKeyword | back to summary |
|---|---|
| protected int checkKeyword(String exp) throws IOException, XMLStreamException Implements abstract com.
| |
| construct | back to summary |
|---|---|
| public static CharSourceBootstrapper construct(ReaderConfig cfg, Reader r) throws XMLStreamException | |
| construct | back to summary |
|---|---|
| public static CharSourceBootstrapper construct(ReaderConfig cfg, char[] buffer, int start, int len) throws XMLStreamException | |
| doBootstrap | back to summary |
|---|---|
| public XmlScanner doBootstrap() throws IOException, XMLStreamException | |
| getLocation | back to summary |
|---|---|
| protected Location getLocation() Implements abstract com.
| |
| getNext | back to summary |
|---|---|
| protected int getNext() throws IOException, XMLStreamException Implements abstract com.
| |
| getNextAfterWs | back to summary |
|---|---|
| protected int getNextAfterWs(boolean reqWs) throws IOException, XMLStreamException Implements abstract com.
| |
| initialLoad | back to summary |
|---|---|
| protected boolean initialLoad(int minimum) throws IOException | |
| loadMore | back to summary |
|---|---|
| protected void loadMore() throws IOException, XMLStreamException | |
| nextChar | back to summary |
|---|---|
| protected char nextChar() throws IOException, XMLStreamException | |
| pushback | back to summary |
|---|---|
| protected void pushback() Implements abstract com.
| |
| readQuotedValue | back to summary |
|---|---|
| protected int readQuotedValue(char[] kw, int quoteChar) throws IOException, XMLStreamException Implements abstract com.
| |
| skipCRLF | back to summary |
|---|---|
| protected void skipCRLF(char lf) throws IOException, XMLStreamException | |
| verifyXmlEncoding | back to summary |
|---|---|
protected String verifyXmlEncoding(String enc) throws XMLStreamException
| |