public final class BambooStreamBootstrapper
extends 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
Modifier and Type | Method and Description |
---|---|
Reader |
bootstrapInput(com.ctc.wstx.api.ReaderConfig cfg,
boolean mainDoc,
int xmlVersion) |
protected int |
checkKeyword(String exp) |
protected int |
checkMbKeyword(String expected) |
protected int |
checkSbKeyword(String expected) |
protected int |
checkTranslatedKeyword(String expected) |
protected boolean |
ensureLoaded(int minimum) |
int |
getInputColumn() |
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(String pubId,
com.ctc.wstx.io.SystemId 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(String pubId,
com.ctc.wstx.io.SystemId sysId,
InputStream in)
Factory method used when the underlying data provider is an actual stream.
|
protected 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 String |
verifyXmlEncoding(String enc) |
public static BambooStreamBootstrapper getInstance(String pubId, com.ctc.wstx.io.SystemId sysId, InputStream in)
public static BambooStreamBootstrapper getInstance(String pubId, com.ctc.wstx.io.SystemId sysId, byte[] data, int start, int end)
public Reader bootstrapInput(com.ctc.wstx.api.ReaderConfig cfg, boolean mainDoc, int xmlVersion) throws IOException, XMLStreamException
bootstrapInput
in class com.ctc.wstx.io.InputBootstrapper
IOException
XMLStreamException
public 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 IOException, com.ctc.wstx.exc.WstxException
IOException
com.ctc.wstx.exc.WstxException
protected String verifyXmlEncoding(String enc) throws com.ctc.wstx.exc.WstxException
com.ctc.wstx.exc.WstxException
protected boolean ensureLoaded(int minimum) throws IOException
IOException
protected void loadMore() throws IOException, com.ctc.wstx.exc.WstxException
IOException
com.ctc.wstx.exc.WstxException
protected void pushback()
pushback
in class com.ctc.wstx.io.InputBootstrapper
protected int getNext() throws IOException, com.ctc.wstx.exc.WstxException
getNext
in class com.ctc.wstx.io.InputBootstrapper
IOException
com.ctc.wstx.exc.WstxException
protected int getNextAfterWs(boolean reqWs) throws IOException, com.ctc.wstx.exc.WstxException
getNextAfterWs
in class com.ctc.wstx.io.InputBootstrapper
IOException
com.ctc.wstx.exc.WstxException
protected int checkKeyword(String exp) throws IOException, com.ctc.wstx.exc.WstxException
checkKeyword
in class com.ctc.wstx.io.InputBootstrapper
IOException
com.ctc.wstx.exc.WstxException
protected int readQuotedValue(char[] kw, int quoteChar) throws IOException, com.ctc.wstx.exc.WstxException
readQuotedValue
in class com.ctc.wstx.io.InputBootstrapper
IOException
com.ctc.wstx.exc.WstxException
protected boolean hasXmlDecl() throws IOException, com.ctc.wstx.exc.WstxException
IOException
com.ctc.wstx.exc.WstxException
protected Location getLocation()
getLocation
in class com.ctc.wstx.io.InputBootstrapper
protected byte nextByte() throws IOException, com.ctc.wstx.exc.WstxException
IOException
com.ctc.wstx.exc.WstxException
protected int skipSbWs() throws IOException, com.ctc.wstx.exc.WstxException
IOException
com.ctc.wstx.exc.WstxException
protected void skipSbLF(byte lfByte) throws IOException, com.ctc.wstx.exc.WstxException
IOException
com.ctc.wstx.exc.WstxException
protected int checkSbKeyword(String expected) throws IOException, com.ctc.wstx.exc.WstxException
IOException
com.ctc.wstx.exc.WstxException
protected int nextMultiByte() throws IOException, com.ctc.wstx.exc.WstxException
IOException
com.ctc.wstx.exc.WstxException
protected int nextTranslated() throws IOException, com.ctc.wstx.exc.WstxException
IOException
com.ctc.wstx.exc.WstxException
protected int skipMbWs() throws IOException, com.ctc.wstx.exc.WstxException
IOException
com.ctc.wstx.exc.WstxException
protected int skipTranslatedWs() throws IOException, com.ctc.wstx.exc.WstxException
IOException
com.ctc.wstx.exc.WstxException
protected void skipMbLF(int lf) throws IOException, com.ctc.wstx.exc.WstxException
IOException
com.ctc.wstx.exc.WstxException
protected void skipTranslatedLF(int lf) throws IOException, com.ctc.wstx.exc.WstxException
IOException
com.ctc.wstx.exc.WstxException
protected int checkMbKeyword(String expected) throws IOException, com.ctc.wstx.exc.WstxException
IOException
com.ctc.wstx.exc.WstxException
protected int checkTranslatedKeyword(String expected) throws IOException, com.ctc.wstx.exc.WstxException
IOException
com.ctc.wstx.exc.WstxException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.