| Modifier and Type | Field and Description |
|---|---|
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final char | |
| public static final char | |
| public static final char | |
| protected static final String | |
| protected static final String | |
| protected static final String | |
| protected static final String | |
| protected static final String | |
| protected static final String | |
| protected static final String | |
| protected int | mDeclaredXmlVersion
XML declaration from the input (1.0, 1.1 or 'unknown') |
| protected String | mFoundEncoding
Value of encoding pseudo-attribute from xml declaration, if one was found; null otherwise. |
| protected int | mInputProcessed
Current number of characters that were processed in previous blocks, before contents of current input buffer. |
| protected int | mInputRow
Current row location of current point in input buffer, starting from 1 |
| protected int | mInputRowStart
Current index of the first character of the current row in input buffer. |
| protected final char[] | mKeywordBuffer
Need a short buffer to read in values of pseudo-attributes (version, encoding, standalone). |
| protected final String | |
| protected String | |
| protected final SystemId | |
| protected boolean | mXml11Handling
Flag that indicates whether input read from this input source needs to be xml 1.1 compliant or not; if not, xml 1.0 is assumed. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Reader | bootstrapInput(ReaderConfig cfg, boolean mainDoc, int
Optional 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)
|
| protected abstract int | Returns: First character that does not match expected, if any; CHAR_NULL if match succeeded
|
| public boolean | Returns: True, if the input bootstrapped declared that it conforms to xml 1.1 (independent of where it was included from)
|
| public String | Returns: Encoding declaration found from the xml declaration, if any; null if none.
|
| public int | |
| public abstract int | |
| public abstract String | Returns: Input encoding in use, if it could be determined or was passed by the calling applicationActual 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 abstract int | |
| protected abstract Location | |
| protected abstract int | |
| protected abstract int | |
| public String | |
| public String | |
| public SystemId | |
| private final int | getWsOrChar(int ok)
Method that should get next character, which has to be either specified character (usually end marker), OR, any character as long as there' at least one space character before it. |
| private final int | |
| protected void | |
| protected abstract void | |
| protected abstract int | |
| protected void | readXmlDecl(boolean isMainDoc, int
Optional 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)
|
| private final String | |
| private final String | |
| private final int | |
| protected void | |
| private final void | |
| protected void | |
| protected void |
| BYTE_CR | back to summary |
|---|---|
| public static final byte BYTE_CR | |
| BYTE_LF | back to summary |
|---|---|
| public static final byte BYTE_LF | |
| BYTE_NULL | back to summary |
|---|---|
| public static final byte BYTE_NULL | |
| CHAR_CR | back to summary |
|---|---|
| public static final byte CHAR_CR | |
| CHAR_LF | back to summary |
|---|---|
| public static final byte CHAR_LF | |
| CHAR_NEL | back to summary |
|---|---|
| public static final char CHAR_NEL | |
| CHAR_NULL | back to summary |
|---|---|
| public static final char CHAR_NULL | |
| CHAR_SPACE | back to summary |
|---|---|
| public static final char CHAR_SPACE | |
| ERR_XMLDECL_END_MARKER | back to summary |
|---|---|
| protected static final String ERR_XMLDECL_END_MARKER | |
| ERR_XMLDECL_EXP_ATTRVAL | back to summary |
|---|---|
| protected static final String ERR_XMLDECL_EXP_ATTRVAL | |
| ERR_XMLDECL_EXP_EQ | back to summary |
|---|---|
| protected static final String ERR_XMLDECL_EXP_EQ | |
| ERR_XMLDECL_EXP_SPACE | back to summary |
|---|---|
| protected static final String ERR_XMLDECL_EXP_SPACE | |
| ERR_XMLDECL_KW_ENCODING | back to summary |
|---|---|
| protected static final String ERR_XMLDECL_KW_ENCODING | |
| ERR_XMLDECL_KW_STANDALONE | back to summary |
|---|---|
| protected static final String ERR_XMLDECL_KW_STANDALONE | |
| ERR_XMLDECL_KW_VERSION | back to summary |
|---|---|
| protected static final String ERR_XMLDECL_KW_VERSION | |
| mDeclaredXmlVersion | back to summary |
|---|---|
| protected int mDeclaredXmlVersion XML declaration from the input (1.0, 1.1 or 'unknown') | |
| mFoundEncoding | back to summary |
|---|---|
| protected String mFoundEncoding Value of encoding pseudo-attribute from xml declaration, if one was found; null otherwise. | |
| mInputProcessed | back to summary |
|---|---|
| protected int mInputProcessed Current number of characters that were processed in previous blocks, before contents of current input buffer. | |
| mInputRow | back to summary |
|---|---|
| protected int mInputRow Current row location of current point in input buffer, starting from 1 | |
| mInputRowStart | back to summary |
|---|---|
| protected int mInputRowStart Current index of the first character of the current row in input buffer. Needed to calculate column position, if necessary; benefit of not having column itself is that this only has to be updated once per line. | |
| mKeywordBuffer | back to summary |
|---|---|
| protected final char[] mKeywordBuffer Need a short buffer to read in values of pseudo-attributes (version, encoding, standalone). Don't really need tons of space; just enough for the longest anticipated encoding id... and maybe few chars just in case (for additional white space that we ignore) | |
| mPublicId | back to summary |
|---|---|
| protected final String mPublicId | |
| mStandalone | back to summary |
|---|---|
| protected String mStandalone | |
| mSystemId | back to summary |
|---|---|
| protected final SystemId mSystemId | |
| mXml11Handling | back to summary |
|---|---|
| protected boolean mXml11Handling Flag that indicates whether input read from this input source needs to be xml 1.1 compliant or not; if not, xml 1.0 is assumed. State of this flag depends on parent context (if one existed), or if not, on xml declaration of this input source. | |
| InputBootstrapper | back to summary |
|---|---|
| protected InputBootstrapper(String pubId, SystemId sysId) | |
| bootstrapInput | back to summary |
|---|---|
public abstract Reader bootstrapInput(ReaderConfig cfg, boolean mainDoc, int xmlVersion) throws IOException, XMLStreamException
| |
| checkKeyword | back to summary |
|---|---|
protected abstract int checkKeyword(String exp) throws IOException, WstxException
| |
| declaredXml11 | back to summary |
|---|---|
public boolean declaredXml11()
| |
| getDeclaredEncoding | back to summary |
|---|---|
public String getDeclaredEncoding()
| |
| getDeclaredVersion | back to summary |
|---|---|
| public int getDeclaredVersion() | |
| getInputColumn | back to summary |
|---|---|
| public abstract int getInputColumn() | |
| getInputEncoding | back to summary |
|---|---|
| public abstract String getInputEncoding() 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).
| |
| getInputRow | back to summary |
|---|---|
| public int getInputRow() | |
| getInputTotal | back to summary |
|---|---|
public abstract int getInputTotal()
| |
| getLocation | back to summary |
|---|---|
| protected abstract Location getLocation() | |
| getNext | back to summary |
|---|---|
| protected abstract int getNext() throws IOException, WstxException | |
| getNextAfterWs | back to summary |
|---|---|
| protected abstract int getNextAfterWs(boolean reqWs) throws IOException, WstxException | |
| getPublicId | back to summary |
|---|---|
| public String getPublicId() | |
| getStandalone | back to summary |
|---|---|
| public String getStandalone() | |
| getSystemId | back to summary |
|---|---|
| public SystemId getSystemId() | |
| getWsOrChar | back to summary |
|---|---|
| private final int getWsOrChar(int ok) throws IOException, WstxException Method that should get next character, which has to be either specified character (usually end marker), OR, any character as long as there' at least one space character before it. | |
| handleEq | back to summary |
|---|---|
| private final int handleEq(String attr) throws IOException, WstxException | |
| initFrom | back to summary |
|---|---|
| protected void initFrom(InputBootstrapper src) | |
| pushback | back to summary |
|---|---|
| protected abstract void pushback() | |
| readQuotedValue | back to summary |
|---|---|
| protected abstract int readQuotedValue(char[] kw, int quoteChar) throws IOException, WstxException | |
| readXmlDecl | back to summary |
|---|---|
protected void readXmlDecl(boolean isMainDoc, int xmlVersion) throws IOException, WstxException
| |
| readXmlEncoding | back to summary |
|---|---|
| private final String readXmlEncoding() throws IOException, WstxException | |
| readXmlStandalone | back to summary |
|---|---|
| private final String readXmlStandalone() throws IOException, WstxException | |
| readXmlVersion | back to summary |
|---|---|
private final int readXmlVersion() throws IOException, WstxException
| |
| reportNull | back to summary |
|---|---|
| protected void reportNull() throws WstxException | |
| reportPseudoAttrProblem | back to summary |
|---|---|
| private final void reportPseudoAttrProblem(String attrName, String got, String expVal1, String expVal2) throws WstxException | |
| reportUnexpectedChar | back to summary |
|---|---|
| protected void reportUnexpectedChar(int i, String msg) throws WstxException | |
| reportXmlProblem | back to summary |
|---|---|
| protected void reportXmlProblem(String msg) throws WstxException | |