public final class CharSourceBootstrapper extends InputBootstrapper
_inputProcessed, _inputRow, _inputRowStart, ERR_XMLDECL_END_MARKER, ERR_XMLDECL_EXP_ATTRVAL, ERR_XMLDECL_EXP_EQ, ERR_XMLDECL_EXP_SPACE, ERR_XMLDECL_KW_ENCODING, ERR_XMLDECL_KW_STANDALONE, ERR_XMLDECL_KW_VERSION
CHAR_CR, CHAR_LF, CHAR_NULL, CHAR_SPACE, MAX_UNICODE_CHAR, STAX_DEFAULT_OUTPUT_ENCODING, STAX_DEFAULT_OUTPUT_VERSION, XML_DECL_KW_ENCODING, XML_DECL_KW_STANDALONE, XML_DECL_KW_VERSION, XML_SA_NO, XML_SA_YES, XML_V_10, XML_V_10_STR, XML_V_11, XML_V_11_STR, XML_V_UNKNOWN
Modifier and Type | Method and Description |
---|---|
XmlScanner |
bootstrap()
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.
|
protected int |
checkKeyword(String exp) |
static CharSourceBootstrapper |
construct(ReaderConfig cfg,
char[] buffer,
int start,
int len) |
static CharSourceBootstrapper |
construct(ReaderConfig cfg,
Reader r) |
XmlScanner |
doBootstrap() |
protected Location |
getLocation() |
protected int |
getNext() |
protected int |
getNextAfterWs(boolean reqWs) |
protected boolean |
initialLoad(int minimum) |
protected void |
loadMore() |
protected char |
nextChar() |
protected void |
pushback() |
protected int |
readQuotedValue(char[] kw,
int quoteChar) |
protected void |
skipCRLF(char lf) |
protected String |
verifyXmlEncoding(String enc) |
readXmlDeclaration, reportEof, reportNull, reportPseudoAttrProblem, reportUnexpectedChar, reportXmlProblem
public static CharSourceBootstrapper construct(ReaderConfig cfg, Reader r) throws XMLStreamException
XMLStreamException
public static CharSourceBootstrapper construct(ReaderConfig cfg, char[] buffer, int start, int len) throws XMLStreamException
XMLStreamException
public final XmlScanner bootstrap() throws XMLStreamException
InputBootstrapper
bootstrap
in class InputBootstrapper
XMLStreamException
public XmlScanner doBootstrap() throws IOException, XMLStreamException
IOException
XMLStreamException
protected String verifyXmlEncoding(String enc) throws XMLStreamException
XMLStreamException
protected boolean initialLoad(int minimum) throws IOException
IOException
protected void loadMore() throws IOException, XMLStreamException
IOException
XMLStreamException
protected void pushback()
pushback
in class InputBootstrapper
protected int getNext() throws IOException, XMLStreamException
getNext
in class InputBootstrapper
IOException
XMLStreamException
protected int getNextAfterWs(boolean reqWs) throws IOException, XMLStreamException
getNextAfterWs
in class InputBootstrapper
IOException
XMLStreamException
protected int checkKeyword(String exp) throws IOException, XMLStreamException
checkKeyword
in class InputBootstrapper
IOException
XMLStreamException
protected int readQuotedValue(char[] kw, int quoteChar) throws IOException, XMLStreamException
readQuotedValue
in class InputBootstrapper
IOException
XMLStreamException
protected Location getLocation()
getLocation
in class InputBootstrapper
protected char nextChar() throws IOException, XMLStreamException
IOException
XMLStreamException
protected void skipCRLF(char lf) throws IOException, XMLStreamException
IOException
XMLStreamException
Copyright © 2018 FasterXML. All rights reserved.