public final class AsciiReader extends BaseReader
Modifier and Type | Field and Description |
---|---|
(package private) int |
mCharCount
Total read character count; used for error reporting purposes
(note: byte count is the same, due to fixed one-byte-per char mapping)
|
(package private) boolean |
mXml11 |
CHAR_DEL, CONVERT_LSEP_TO, CONVERT_NEL_TO, mByteBuffer, mByteBufferEnd, mBytePtr, mConfig, mTmpBuf, NULL_BYTE, NULL_CHAR
Constructor and Description |
---|
AsciiReader(ReaderConfig cfg,
java.io.InputStream in,
byte[] buf,
int ptr,
int len,
boolean recycleBuffer) |
Modifier and Type | Method and Description |
---|---|
int |
read(char[] cbuf,
int start,
int len) |
private void |
reportInvalidAscii(char c) |
void |
setXmlCompliancy(int xmlVersion)
Method that can be called to indicate the xml conformance used
when reading content using this reader.
|
canModifyBuffer, close, freeBuffers, getStream, read, readBytes, readBytesAt, reportBounds, reportInvalidXml11, reportStrangeStream
boolean mXml11
int mCharCount
public AsciiReader(ReaderConfig cfg, java.io.InputStream in, byte[] buf, int ptr, int len, boolean recycleBuffer)
public void setXmlCompliancy(int xmlVersion)
BaseReader
setXmlCompliancy
in class BaseReader
public int read(char[] cbuf, int start, int len) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
private void reportInvalidAscii(char c) throws java.io.IOException
java.io.IOException