Note
since the actual Reader to use after bootstrapping is pre-constructed, the local input buffer can (and should) be quite small.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final char | |
| private char[] | |
| pack-priv final Reader | mIn
Underlying Reader to use for reading content. |
| pack-priv final String | mInputEncoding
Encoding identifier processing application passed in; if not null, will be compared to actual xml declaration based encoding (if declaration found) |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Reader | Returns: Actual reader to use for reading xml contentOptional xml version identifier of the main parsed
document (if not bootstrapping the main document).
Currently only relevant for checking that XML 1.0 document does not
include XML 1.1 external parsed entities.
If null, no checks will be done; when bootstrapping parsing of the
main document, null should be passed for this argument. xmlVersion)Implements abstract com. Method called to do actual bootstrapping. |
| protected int | Returns: First character that does not match expected, if any; CHAR_NULL if match succeededImplements abstract com.
|
| public int | |
| public String | getInputEncoding()
Implements abstract com. Actual character encoding used by the underlying input source; may have been passed by the application, or auto-detected by byte stream boot strapper (can not be determined from a Reader source). |
| public int | |
| public static ReaderBootstrapper | getInstance(String pubId, SystemId sysId, Reader
Eventual reader that will be reading actual content, after
bootstrapping finishes r, String Encoding that application declared; may be null.
If not null, will be compared to actual declaration found; and
incompatibility reported as a potential (but not necessarily fatal)
problem. appEncoding)
|
| protected Location | |
| protected int | |
| protected int | |
| protected boolean | |
| protected void | |
| protected char | |
| protected void | |
| protected int | readQuotedValue(char[] kw, int quoteChar)
Implements abstract com.
|
| protected void | |
| protected void |
| CHAR_BOM_MARKER | back to summary |
|---|---|
| pack-priv static final char CHAR_BOM_MARKER | |
| mCharBuffer | back to summary |
|---|---|
| private char[] mCharBuffer | |
| mIn | back to summary |
|---|---|
| pack-priv final Reader mIn Underlying Reader to use for reading content. | |
| mInputEncoding | back to summary |
|---|---|
| pack-priv final String mInputEncoding Encoding identifier processing application passed in; if not null, will be compared to actual xml declaration based encoding (if declaration found) | |
| mInputEnd | back to summary |
|---|---|
| private int mInputEnd | |
| mInputPtr | back to summary |
|---|---|
| private int mInputPtr | |
| ReaderBootstrapper | back to summary |
|---|---|
| private ReaderBootstrapper(String pubId, SystemId sysId, Reader r, String appEncoding) | |
| bootstrapInput | back to summary |
|---|---|
| public Reader bootstrapInput(ReaderConfig cfg, boolean mainDoc, int xmlVersion) throws IOException, XMLStreamException Implements abstract com. Method called to do actual bootstrapping.
| |
| checkKeyword | back to summary |
|---|---|
| protected int checkKeyword(String exp) throws IOException, WstxException Implements abstract com.
| |
| getInputColumn | back to summary |
|---|---|
| public int getInputColumn() Implements abstract com.
| |
| getInputEncoding | back to summary |
|---|---|
| public String getInputEncoding() Implements abstract com. Doc from com. Actual character encoding used by the underlying input source; may have been passed by the application, or auto-detected by byte stream boot strapper (can not be determined from a Reader source). | |
| getInputTotal | back to summary |
|---|---|
| public int getInputTotal() Implements abstract com.
| |
| getInstance | back to summary |
|---|---|
public static ReaderBootstrapper getInstance(String pubId, SystemId sysId, Reader r, String appEncoding)
| |
| getLocation | back to summary |
|---|---|
| protected Location getLocation() Implements abstract com.
| |
| getNext | back to summary |
|---|---|
| protected int getNext() throws IOException, WstxException Implements abstract com.
| |
| getNextAfterWs | back to summary |
|---|---|
| protected int getNextAfterWs(boolean reqWs) throws IOException, WstxException Implements abstract com.
| |
| initialLoad | back to summary |
|---|---|
| protected boolean initialLoad(int minimum) throws IOException | |
| loadMore | back to summary |
|---|---|
| protected void loadMore() throws IOException, WstxException | |
| nextChar | back to summary |
|---|---|
| protected char nextChar() throws IOException, WstxException | |
| pushback | back to summary |
|---|---|
| protected void pushback() Implements abstract com.
| |
| readQuotedValue | back to summary |
|---|---|
| protected int readQuotedValue(char[] kw, int quoteChar) throws IOException, WstxException Implements abstract com.
| |
| skipCRLF | back to summary |
|---|---|
| protected void skipCRLF(char lf) throws IOException, WstxException | |
| verifyXmlEncoding | back to summary |
|---|---|
| protected void verifyXmlEncoding(ReaderConfig cfg) throws XMLStreamException | |