| Modifier and Type | Field and Description |
|---|---|
| protected final boolean | |
| protected byte[] | |
| 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 final ReaderConfig | |
| protected InputStream | |
| protected int | |
| protected int | |
| 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. |
| pack-priv char[] | |
| private static final char |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract java. Implements java. |
| public final void | |
| private boolean | Returns: True, if enough bytes were read to allow decoding of at least one full character; false if EOF was encountered instead.Number of "unused" bytes in the input buffer available)
|
| public int | read()
Overrides java. |
| public int | read(char[]
Destination buffer cbuf, int Offset at which to start storing characters start, int Maximum number of characters to read len)Implements abstract java. |
| protected void | |
| private void | |
| protected void | |
| private void |
| mBigEndian | back to summary |
|---|---|
| protected final boolean mBigEndian | |
| mBuffer | back to summary |
|---|---|
| protected byte[] mBuffer | |
| mByteCount | back to summary |
|---|---|
| protected int mByteCount Total read byte count; used for error reporting purposes | |
| mCharCount | back to summary |
|---|---|
| protected int mCharCount Total read character count; used for error reporting purposes | |
| mConfig | back to summary |
|---|---|
| protected final ReaderConfig mConfig | |
| mIn | back to summary |
|---|---|
| protected InputStream mIn | |
| mLength | back to summary |
|---|---|
| protected int mLength | |
| mPtr | back to summary |
|---|---|
| protected int mPtr | |
| mSurrogate | back to summary |
|---|---|
| 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. | |
| mTmpBuf | back to summary |
|---|---|
| pack-priv char[] mTmpBuf | |
| NULL_CHAR | back to summary |
|---|---|
| private static final char NULL_CHAR | |
| Utf32Reader | back to summary |
|---|---|
| public Utf32Reader(ReaderConfig cfg, InputStream in, byte[] buf, int ptr, int len, boolean isBigEndian) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract java. Implements java. Doc from java. Closes the stream and releases any system resources associated with it. Once the stream has been closed, further read(), ready(), mark(), reset(), or skip() invocations will throw an IOException. Closing a previously closed stream has no effect.
| |
| freeBuffers | back to summary |
|---|---|
| public final void freeBuffers() | |
| loadMore | back to summary |
|---|---|
private boolean loadMore(int available) throws IOException
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. 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
| |
| read | back to summary |
|---|---|
| public int read(char[] cbuf, int start, int len) throws IOException Implements abstract java. Doc from java. Reads characters into a portion of an array. This method will block until some input is available, an I/O error occurs, or the end of the stream is reached. If
| |
| reportBounds | back to summary |
|---|---|
| protected void reportBounds(char[] cbuf, int start, int len) throws IOException | |
| reportInvalid | back to summary |
|---|---|
| private void reportInvalid(int value, int offset, String msg) throws IOException | |
| reportStrangeStream | back to summary |
|---|---|
| protected void reportStrangeStream() throws IOException | |
| reportUnexpectedEOF | back to summary |
|---|---|
| private void reportUnexpectedEOF(int gotBytes, int needed) throws IOException | |