public abstract class InputBootstrapper extends Object
Modifier and Type | Field and Description |
---|---|
static byte |
BYTE_CR |
static byte |
BYTE_LF |
static byte |
BYTE_NULL |
static byte |
CHAR_CR |
static byte |
CHAR_LF |
static char |
CHAR_NEL |
static char |
CHAR_NULL |
static char |
CHAR_SPACE |
protected static String |
ERR_XMLDECL_END_MARKER |
protected static String |
ERR_XMLDECL_EXP_ATTRVAL |
protected static String |
ERR_XMLDECL_EXP_EQ |
protected static String |
ERR_XMLDECL_EXP_SPACE |
protected static String |
ERR_XMLDECL_KW_ENCODING |
protected static String |
ERR_XMLDECL_KW_STANDALONE |
protected static String |
ERR_XMLDECL_KW_VERSION |
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 String |
mPublicId |
protected SystemId |
mSystemId |
Modifier | Constructor and Description |
---|---|
protected |
InputBootstrapper(String pubId,
SystemId sysId) |
Modifier and Type | Method and Description |
---|---|
abstract Reader |
bootstrapInput(ReaderConfig cfg,
boolean mainDoc,
int xmlVersion) |
protected abstract int |
checkKeyword(String exp) |
boolean |
declaredXml11() |
String |
getDeclaredEncoding() |
int |
getDeclaredVersion() |
abstract int |
getInputColumn() |
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).
|
int |
getInputRow() |
abstract int |
getInputTotal() |
protected abstract Location |
getLocation() |
protected abstract int |
getNext() |
protected abstract int |
getNextAfterWs(boolean reqWs) |
String |
getPublicId() |
String |
getStandalone() |
SystemId |
getSystemId() |
protected void |
initFrom(InputBootstrapper src) |
protected abstract void |
pushback() |
protected abstract int |
readQuotedValue(char[] kw,
int quoteChar) |
protected void |
readXmlDecl(boolean isMainDoc,
int xmlVersion) |
protected void |
reportNull() |
protected void |
reportUnexpectedChar(int i,
String msg) |
protected void |
reportXmlProblem(String msg) |
protected static final String ERR_XMLDECL_KW_VERSION
protected static final String ERR_XMLDECL_KW_ENCODING
protected static final String ERR_XMLDECL_KW_STANDALONE
protected static final String ERR_XMLDECL_END_MARKER
protected static final String ERR_XMLDECL_EXP_SPACE
protected static final String ERR_XMLDECL_EXP_EQ
protected static final String ERR_XMLDECL_EXP_ATTRVAL
public static final char CHAR_NULL
public static final char CHAR_SPACE
public static final char CHAR_NEL
public static final byte CHAR_CR
public static final byte CHAR_LF
public static final byte BYTE_NULL
public static final byte BYTE_CR
public static final byte BYTE_LF
protected final String mPublicId
protected final SystemId mSystemId
protected int mInputProcessed
protected int mInputRow
protected int mInputRowStart
protected void initFrom(InputBootstrapper src)
public abstract Reader bootstrapInput(ReaderConfig cfg, boolean mainDoc, int xmlVersion) throws IOException, XMLStreamException
xmlVersion
- 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.IOException
XMLStreamException
public String getPublicId()
public SystemId getSystemId()
public int getDeclaredVersion()
public boolean declaredXml11()
public String getStandalone()
public String getDeclaredEncoding()
public abstract int getInputTotal()
public int getInputRow()
public abstract int getInputColumn()
public abstract String getInputEncoding()
protected void readXmlDecl(boolean isMainDoc, int xmlVersion) throws IOException, WstxException
xmlVersion
- 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.IOException
WstxException
protected abstract void pushback()
protected abstract int getNext() throws IOException, WstxException
IOException
WstxException
protected abstract int getNextAfterWs(boolean reqWs) throws IOException, WstxException
IOException
WstxException
protected abstract int checkKeyword(String exp) throws IOException, WstxException
IOException
WstxException
protected abstract int readQuotedValue(char[] kw, int quoteChar) throws IOException, WstxException
IOException
WstxException
protected abstract Location getLocation()
protected void reportNull() throws WstxException
WstxException
protected void reportXmlProblem(String msg) throws WstxException
WstxException
protected void reportUnexpectedChar(int i, String msg) throws WstxException
WstxException
Copyright © 2018 FasterXML. All rights reserved.