public class Utf32Reader extends Reader
Modifier and Type | Field and Description |
---|---|
protected boolean |
mBigEndian |
protected byte[] |
mBuffer |
protected int |
mByteCount
Total read byte count; used for error reporting purposes
|
protected int |
mCharCount
Total read character count; used for error reporting purposes
|
protected ReaderConfig |
mConfig |
protected InputStream |
mIn |
protected int |
mLength |
protected int |
mPtr |
protected char |
mSurrogate
Although input is fine with full Unicode set, Java still uses
16-bit chars, so we may have to split high-order chars into
surrogate pairs.
|
Constructor and Description |
---|
Utf32Reader(ReaderConfig cfg,
InputStream in,
byte[] buf,
int ptr,
int len,
boolean isBigEndian) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
freeBuffers() |
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 |
reportStrangeStream() |
protected final ReaderConfig mConfig
protected InputStream mIn
protected byte[] mBuffer
protected int mPtr
protected int mLength
protected final boolean mBigEndian
protected char mSurrogate
protected int mCharCount
protected int mByteCount
public Utf32Reader(ReaderConfig cfg, InputStream in, byte[] buf, int ptr, int len, boolean isBigEndian)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
public int read() throws IOException
read
in class Reader
IOException
public int read(char[] cbuf, int start, int len) throws IOException
read
in class Reader
IOException
public final void freeBuffers()
protected void reportBounds(char[] cbuf, int start, int len) throws IOException
IOException
protected void reportStrangeStream() throws IOException
IOException
Copyright © 2022 FasterXML. All rights reserved.