public final class UTF32Reader
extends java.io.Reader
Modifier and Type | Field and Description |
---|---|
protected static char |
CONVERT_LSEP_TO
In xml 1.1, LSEP bit like \n, or \r.
|
protected static char |
CONVERT_NEL_TO
In xml 1.1, NEL (0x85) behaves much the way \n does (can
be follow \r as part of the linefeed
|
protected byte[] |
mBuffer |
protected java.io.InputStream |
mIn |
protected int |
mLength |
protected int |
mPtr |
protected static char |
NULL_BYTE |
protected static char |
NULL_CHAR |
Constructor and Description |
---|
UTF32Reader(ReaderConfig cfg,
java.io.InputStream in,
byte[] buf,
int ptr,
int len,
boolean isBigEndian) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
freeBuffers()
This method should be called along with (or instead of) normal
close.
|
int |
read()
Although this method is implemented by the base class, AND it should
never be called by Woodstox code, let's still implement it bit more
efficiently just in case
|
int |
read(char[] cbuf,
int start,
int len) |
protected void |
reportBounds(char[] cbuf,
int start,
int len) |
protected void |
reportInvalidXml11(int value,
int bytePos,
int charPos) |
protected void |
reportStrangeStream() |
void |
setXmlCompliancy(int xmlVersion)
Method that can be called to indicate the xml conformance used
when reading content using this reader.
|
protected static final char NULL_CHAR
protected static final char NULL_BYTE
protected static final char CONVERT_NEL_TO
protected static final char CONVERT_LSEP_TO
protected java.io.InputStream mIn
protected byte[] mBuffer
protected int mPtr
protected int mLength
public UTF32Reader(ReaderConfig cfg, java.io.InputStream in, byte[] buf, int ptr, int len, boolean isBigEndian)
public void setXmlCompliancy(int xmlVersion)
public int read(char[] cbuf, int start, int len) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Reader
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public final void freeBuffers()
protected void reportBounds(char[] cbuf, int start, int len) throws java.io.IOException
java.io.IOException
protected void reportStrangeStream() throws java.io.IOException
java.io.IOException
protected void reportInvalidXml11(int value, int bytePos, int charPos) throws java.io.IOException
java.io.IOException