InputStream,
or a block source like byte array.
| Modifier and Type | Field and Description |
|---|---|
| protected final InputStream | _in
Underlying InputStream to use for reading content. |
| protected final byte[] | |
| private int | |
| private int | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| protected boolean | |
| protected boolean | |
| protected int | |
| protected boolean |
| 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. |
| protected int | Returns: First character that does not match expected, if any; CHAR_NULL if match succeeded
|
| protected int | Returns: First character that does not match expected, if any; CHAR_NULL if match succeeded
|
| public static ByteSourceBootstrapper | |
| public static ByteSourceBootstrapper | |
| private void | determineStreamEncoding()
Method called to figure out what the physical encoding of the file appears to be (in case it can be determined from BOM, or xml declaration, either of which may be present) |
| public XmlScanner | |
| protected boolean | |
| protected Location | |
| protected int | |
| protected int | getNextAfterWs(boolean reqWs)
Implements abstract com. |
| protected boolean | |
| protected void | |
| protected byte | |
| protected int | |
| protected void | |
| protected int | readQuotedValue(char[] kw, int quoteChar)
Implements abstract com. |
| private void | |
| private void | |
| protected void | |
| protected int | |
| protected void | |
| protected int | |
| private void | |
| private void | |
| protected String |
| _in | back to summary |
|---|---|
| protected final InputStream _in Underlying InputStream to use for reading content. | |
| _inputBuffer | back to summary |
|---|---|
| protected final byte[] _inputBuffer | |
| _inputLen | back to summary |
|---|---|
| private int _inputLen | |
| _inputPtr | back to summary |
|---|---|
| private int _inputPtr | |
| BYTE_CR | back to summary |
|---|---|
| private static final byte BYTE_CR | |
| BYTE_LF | back to summary |
|---|---|
| private static final byte BYTE_LF | |
| BYTE_NULL | back to summary |
|---|---|
| private static final byte BYTE_NULL | |
| mBigEndian | back to summary |
|---|---|
| protected boolean mBigEndian | |
| mByteSizeFound | back to summary |
|---|---|
| protected boolean mByteSizeFound | |
| mBytesPerChar | back to summary |
|---|---|
| protected int mBytesPerChar | |
| mHadBOM | back to summary |
|---|---|
| protected boolean mHadBOM | |
| ByteSourceBootstrapper | back to summary |
|---|---|
| private ByteSourceBootstrapper(ReaderConfig cfg, InputStream in) | |
| ByteSourceBootstrapper | back to summary |
|---|---|
| private ByteSourceBootstrapper(ReaderConfig cfg, byte[] inputBuffer, int inputStart, int inputLen) | |
| 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.
| |
| checkMbKeyword | back to summary |
|---|---|
protected int checkMbKeyword(String expected) throws IOException, XMLStreamException
| |
| checkSbKeyword | back to summary |
|---|---|
protected int checkSbKeyword(String expected) throws IOException, XMLStreamException
| |
| construct | back to summary |
|---|---|
| public static ByteSourceBootstrapper construct(ReaderConfig cfg, InputStream in) throws XMLStreamException | |
| construct | back to summary |
|---|---|
| public static ByteSourceBootstrapper construct(ReaderConfig cfg, byte[] inputBuffer, int inputStart, int inputLen) throws XMLStreamException | |
| determineStreamEncoding | back to summary |
|---|---|
| private void determineStreamEncoding() throws IOException Method called to figure out what the physical encoding of the file appears to be (in case it can be determined from BOM, or xml declaration, either of which may be present) | |
| doBootstrap | back to summary |
|---|---|
| public XmlScanner doBootstrap() throws IOException, XMLStreamException | |
| ensureLoaded | back to summary |
|---|---|
| protected boolean ensureLoaded(int minimum) throws IOException | |
| 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.
| |
| hasXmlDeclaration | back to summary |
|---|---|
| protected boolean hasXmlDeclaration() throws IOException, XMLStreamException | |
| loadMore | back to summary |
|---|---|
| protected void loadMore() throws IOException, XMLStreamException | |
| nextByte | back to summary |
|---|---|
| protected byte nextByte() throws IOException, XMLStreamException | |
| nextMultiByte | back to summary |
|---|---|
| protected int nextMultiByte() 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.
| |
| reportEBCDIC | back to summary |
|---|---|
| private void reportEBCDIC() throws IOException | |
| reportWeirdUCS4 | back to summary |
|---|---|
| private void reportWeirdUCS4(String type) throws IOException | |
| skipMbLF | back to summary |
|---|---|
| protected void skipMbLF(int lf) throws IOException, XMLStreamException | |
| skipMbWs | back to summary |
|---|---|
| protected int skipMbWs() throws IOException, XMLStreamException | |
| skipSbLF | back to summary |
|---|---|
| protected void skipSbLF(byte lfByte) throws IOException, XMLStreamException | |
| skipSbWs | back to summary |
|---|---|
| protected int skipSbWs() throws IOException, XMLStreamException | |
| verifyEncoding | back to summary |
|---|---|
| private void verifyEncoding(String id, int bpc) throws XMLStreamException | |
| verifyEncoding | back to summary |
|---|---|
| private void verifyEncoding(String id, int bpc, boolean bigEndian) throws XMLStreamException | |
| verifyXmlEncoding | back to summary |
|---|---|
protected String verifyXmlEncoding(String enc) throws XMLStreamException
| |