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_VERSIONCHAR_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, reportXmlProblempublic static CharSourceBootstrapper construct(ReaderConfig cfg, Reader r) throws XMLStreamException
XMLStreamExceptionpublic static CharSourceBootstrapper construct(ReaderConfig cfg, char[] buffer, int start, int len) throws XMLStreamException
XMLStreamExceptionpublic final XmlScanner bootstrap() throws XMLStreamException
InputBootstrapperbootstrap in class InputBootstrapperXMLStreamExceptionpublic XmlScanner doBootstrap() throws IOException, XMLStreamException
IOExceptionXMLStreamExceptionprotected String verifyXmlEncoding(String enc) throws XMLStreamException
XMLStreamExceptionprotected boolean initialLoad(int minimum)
throws IOException
IOExceptionprotected void loadMore()
throws IOException,
XMLStreamException
IOExceptionXMLStreamExceptionprotected void pushback()
pushback in class InputBootstrapperprotected int getNext()
throws IOException,
XMLStreamException
getNext in class InputBootstrapperIOExceptionXMLStreamExceptionprotected int getNextAfterWs(boolean reqWs)
throws IOException,
XMLStreamException
getNextAfterWs in class InputBootstrapperIOExceptionXMLStreamExceptionprotected int checkKeyword(String exp) throws IOException, XMLStreamException
checkKeyword in class InputBootstrapperIOExceptionXMLStreamExceptionprotected int readQuotedValue(char[] kw,
int quoteChar)
throws IOException,
XMLStreamException
readQuotedValue in class InputBootstrapperIOExceptionXMLStreamExceptionprotected Location getLocation()
getLocation in class InputBootstrapperprotected char nextChar()
throws IOException,
XMLStreamException
IOExceptionXMLStreamExceptionprotected void skipCRLF(char lf)
throws IOException,
XMLStreamException
IOExceptionXMLStreamExceptionCopyright © 2018 FasterXML. All rights reserved.