|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ctc.wstx.io.InputBootstrapper com.ctc.wstx.io.BambooStreamBootstrapper
public final class BambooStreamBootstrapper
Input bootstrap class used with streams, when encoding is not known (when encoding is specified by application, a reader is constructed, and then reader-based bootstrapper is used).
Field Summary |
---|
Fields inherited from class com.ctc.wstx.io.InputBootstrapper |
---|
BYTE_CR, BYTE_LF, BYTE_NULL, CHAR_CR, CHAR_LF, CHAR_NEL, CHAR_NULL, CHAR_SPACE, 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, mInputProcessed, mInputRow, mInputRowStart, mPublicId, mSystemId |
Method Summary | |
---|---|
java.io.Reader |
bootstrapInput(com.ctc.wstx.api.ReaderConfig cfg,
boolean mainDoc,
int xmlVersion)
|
protected int |
checkKeyword(java.lang.String exp)
|
protected int |
checkMbKeyword(java.lang.String expected)
|
protected int |
checkSbKeyword(java.lang.String expected)
|
protected int |
checkTranslatedKeyword(java.lang.String expected)
|
protected boolean |
ensureLoaded(int minimum)
|
int |
getInputColumn()
|
java.lang.String |
getInputEncoding()
Since this class only gets used when encoding is not explicitly passed, need use the encoding that was auto-detected... |
int |
getInputTotal()
|
static BambooStreamBootstrapper |
getInstance(java.lang.String pubId,
java.lang.String sysId,
byte[] data,
int start,
int end)
Factory method used when the underlying data provider is a pre-allocated block source, and no stream is used. |
static BambooStreamBootstrapper |
getInstance(java.lang.String pubId,
java.lang.String sysId,
java.io.InputStream in)
Factory method used when the underlying data provider is an actual stream. |
protected javax.xml.stream.Location |
getLocation()
|
protected int |
getNext()
|
protected int |
getNextAfterWs(boolean reqWs)
|
protected boolean |
hasXmlDecl()
|
protected void |
loadMore()
|
protected byte |
nextByte()
|
protected int |
nextMultiByte()
|
protected int |
nextTranslated()
|
protected void |
pushback()
|
protected int |
readQuotedValue(char[] kw,
int quoteChar)
|
protected void |
resolveStreamEncoding()
Method called to try to figure out physical encoding the underlying input stream uses. |
protected void |
skipMbLF(int lf)
|
protected int |
skipMbWs()
|
protected void |
skipSbLF(byte lfByte)
|
protected int |
skipSbWs()
|
protected void |
skipTranslatedLF(int lf)
|
protected int |
skipTranslatedWs()
|
protected java.lang.String |
verifyXmlEncoding(java.lang.String enc)
|
Methods inherited from class com.ctc.wstx.io.InputBootstrapper |
---|
declaredXml11, getDeclaredEncoding, getDeclaredVersion, getInputRow, getPublicId, getStandalone, getSystemId, initFrom, readXmlDecl, reportNull, reportUnexpectedChar, reportXmlProblem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static BambooStreamBootstrapper getInstance(java.lang.String pubId, java.lang.String sysId, java.io.InputStream in)
public static BambooStreamBootstrapper getInstance(java.lang.String pubId, java.lang.String sysId, byte[] data, int start, int end)
public java.io.Reader bootstrapInput(com.ctc.wstx.api.ReaderConfig cfg, boolean mainDoc, int xmlVersion) throws java.io.IOException, javax.xml.stream.XMLStreamException
bootstrapInput
in class com.ctc.wstx.io.InputBootstrapper
java.io.IOException
javax.xml.stream.XMLStreamException
public java.lang.String getInputEncoding()
getInputEncoding
in class com.ctc.wstx.io.InputBootstrapper
public int getInputTotal()
getInputTotal
in class com.ctc.wstx.io.InputBootstrapper
public int getInputColumn()
getInputColumn
in class com.ctc.wstx.io.InputBootstrapper
protected void resolveStreamEncoding() throws java.io.IOException, com.ctc.wstx.exc.WstxException
java.io.IOException
com.ctc.wstx.exc.WstxException
protected java.lang.String verifyXmlEncoding(java.lang.String enc) throws com.ctc.wstx.exc.WstxException
com.ctc.wstx.exc.WstxException
protected boolean ensureLoaded(int minimum) throws java.io.IOException
java.io.IOException
protected void loadMore() throws java.io.IOException, com.ctc.wstx.exc.WstxException
java.io.IOException
com.ctc.wstx.exc.WstxException
protected void pushback()
pushback
in class com.ctc.wstx.io.InputBootstrapper
protected int getNext() throws java.io.IOException, com.ctc.wstx.exc.WstxException
getNext
in class com.ctc.wstx.io.InputBootstrapper
java.io.IOException
com.ctc.wstx.exc.WstxException
protected int getNextAfterWs(boolean reqWs) throws java.io.IOException, com.ctc.wstx.exc.WstxException
getNextAfterWs
in class com.ctc.wstx.io.InputBootstrapper
java.io.IOException
com.ctc.wstx.exc.WstxException
protected int checkKeyword(java.lang.String exp) throws java.io.IOException, com.ctc.wstx.exc.WstxException
checkKeyword
in class com.ctc.wstx.io.InputBootstrapper
java.io.IOException
com.ctc.wstx.exc.WstxException
protected int readQuotedValue(char[] kw, int quoteChar) throws java.io.IOException, com.ctc.wstx.exc.WstxException
readQuotedValue
in class com.ctc.wstx.io.InputBootstrapper
java.io.IOException
com.ctc.wstx.exc.WstxException
protected boolean hasXmlDecl() throws java.io.IOException, com.ctc.wstx.exc.WstxException
java.io.IOException
com.ctc.wstx.exc.WstxException
protected javax.xml.stream.Location getLocation()
getLocation
in class com.ctc.wstx.io.InputBootstrapper
protected byte nextByte() throws java.io.IOException, com.ctc.wstx.exc.WstxException
java.io.IOException
com.ctc.wstx.exc.WstxException
protected int skipSbWs() throws java.io.IOException, com.ctc.wstx.exc.WstxException
java.io.IOException
com.ctc.wstx.exc.WstxException
protected void skipSbLF(byte lfByte) throws java.io.IOException, com.ctc.wstx.exc.WstxException
java.io.IOException
com.ctc.wstx.exc.WstxException
protected int checkSbKeyword(java.lang.String expected) throws java.io.IOException, com.ctc.wstx.exc.WstxException
java.io.IOException
com.ctc.wstx.exc.WstxException
protected int nextMultiByte() throws java.io.IOException, com.ctc.wstx.exc.WstxException
java.io.IOException
com.ctc.wstx.exc.WstxException
protected int nextTranslated() throws java.io.IOException, com.ctc.wstx.exc.WstxException
java.io.IOException
com.ctc.wstx.exc.WstxException
protected int skipMbWs() throws java.io.IOException, com.ctc.wstx.exc.WstxException
java.io.IOException
com.ctc.wstx.exc.WstxException
protected int skipTranslatedWs() throws java.io.IOException, com.ctc.wstx.exc.WstxException
java.io.IOException
com.ctc.wstx.exc.WstxException
protected void skipMbLF(int lf) throws java.io.IOException, com.ctc.wstx.exc.WstxException
java.io.IOException
com.ctc.wstx.exc.WstxException
protected void skipTranslatedLF(int lf) throws java.io.IOException, com.ctc.wstx.exc.WstxException
java.io.IOException
com.ctc.wstx.exc.WstxException
protected int checkMbKeyword(java.lang.String expected) throws java.io.IOException, com.ctc.wstx.exc.WstxException
java.io.IOException
com.ctc.wstx.exc.WstxException
protected int checkTranslatedKeyword(java.lang.String expected) throws java.io.IOException, com.ctc.wstx.exc.WstxException
java.io.IOException
com.ctc.wstx.exc.WstxException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |