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, reportStrangeStreamboolean mXml11
int mCharCount
public AsciiReader(ReaderConfig cfg, java.io.InputStream in, byte[] buf, int ptr, int len, boolean recycleBuffer)
public void setXmlCompliancy(int xmlVersion)
BaseReadersetXmlCompliancy in class BaseReaderpublic int read(char[] cbuf,
int start,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionprivate void reportInvalidAscii(char c)
throws java.io.IOException
java.io.IOException