|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.fasterxml.aalto.in.InputBootstrapper
public abstract class InputBootstrapper
Abstract base class that defines shared functionality between different bootstrappers (byte stream, char Readers, block input)
| Field Summary | |
|---|---|
protected int |
_inputProcessed
Current number of input units (bytes or chars) that were processed in previous blocks, before contents of current input buffer. |
protected int |
_inputRow
Current row location of current point in input buffer, using zero-based counting. |
protected int |
_inputRowStart
Current index of the first character of the current row in input buffer. |
protected static java.lang.String |
ERR_XMLDECL_END_MARKER
|
protected static java.lang.String |
ERR_XMLDECL_EXP_ATTRVAL
|
protected static java.lang.String |
ERR_XMLDECL_EXP_EQ
|
protected static java.lang.String |
ERR_XMLDECL_EXP_SPACE
|
protected static java.lang.String |
ERR_XMLDECL_KW_ENCODING
|
protected static java.lang.String |
ERR_XMLDECL_KW_STANDALONE
|
protected static java.lang.String |
ERR_XMLDECL_KW_VERSION
|
| Fields inherited from interface com.fasterxml.aalto.XmlConsts |
|---|
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 |
| Constructor Summary | |
|---|---|
protected |
InputBootstrapper(ReaderConfig cfg)
|
| Method Summary | |
|---|---|
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 abstract int |
checkKeyword(java.lang.String exp)
|
abstract XmlScanner |
doBootstrap()
|
protected abstract javax.xml.stream.Location |
getLocation()
|
protected abstract int |
getNext()
|
protected abstract int |
getNextAfterWs(boolean reqWs)
|
protected abstract void |
pushback()
|
protected abstract int |
readQuotedValue(char[] kw,
int quoteChar)
|
protected void |
readXmlDeclaration()
Method that will parse xml declaration, which at this point is known to exist. |
protected void |
reportEof()
|
protected void |
reportNull()
|
protected void |
reportPseudoAttrProblem(java.lang.String attrName,
java.lang.String got,
java.lang.String expVal1,
java.lang.String expVal2)
|
protected void |
reportUnexpectedChar(int i,
java.lang.String msg)
|
protected void |
reportXmlProblem(java.lang.String msg)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String ERR_XMLDECL_KW_VERSION
protected static final java.lang.String ERR_XMLDECL_KW_ENCODING
protected static final java.lang.String ERR_XMLDECL_KW_STANDALONE
protected static final java.lang.String ERR_XMLDECL_END_MARKER
protected static final java.lang.String ERR_XMLDECL_EXP_SPACE
protected static final java.lang.String ERR_XMLDECL_EXP_EQ
protected static final java.lang.String ERR_XMLDECL_EXP_ATTRVAL
protected int _inputProcessed
Note: includes possible BOMs, if those were part of the input.
protected int _inputRow
protected int _inputRowStart
| Constructor Detail |
|---|
protected InputBootstrapper(ReaderConfig cfg)
| Method Detail |
|---|
public final XmlScanner bootstrap()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public abstract XmlScanner doBootstrap()
throws java.io.IOException,
javax.xml.stream.XMLStreamException
java.io.IOException
javax.xml.stream.XMLStreamException
protected void readXmlDeclaration()
throws java.io.IOException,
javax.xml.stream.XMLStreamException
java.io.IOException
javax.xml.stream.XMLStreamExceptionprotected abstract void pushback()
protected abstract int getNext()
throws java.io.IOException,
javax.xml.stream.XMLStreamException
java.io.IOException
javax.xml.stream.XMLStreamException
protected abstract int getNextAfterWs(boolean reqWs)
throws java.io.IOException,
javax.xml.stream.XMLStreamException
java.io.IOException
javax.xml.stream.XMLStreamException
protected abstract int checkKeyword(java.lang.String exp)
throws java.io.IOException,
javax.xml.stream.XMLStreamException
java.io.IOException
javax.xml.stream.XMLStreamException
protected abstract int readQuotedValue(char[] kw,
int quoteChar)
throws java.io.IOException,
javax.xml.stream.XMLStreamException
java.io.IOException
javax.xml.stream.XMLStreamExceptionprotected abstract javax.xml.stream.Location getLocation()
protected void reportXmlProblem(java.lang.String msg)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected void reportNull()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected void reportEof()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected void reportUnexpectedChar(int i,
java.lang.String msg)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected final void reportPseudoAttrProblem(java.lang.String attrName,
java.lang.String got,
java.lang.String expVal1,
java.lang.String expVal2)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||