CharDecoderpublic class UTF16Decoder extends AbstractCharDecoder
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
bigEndian |
Whether the stream's byte-order is big-endian.
|
buffer, BUFFER_SIZE, count, inputStream, positionEND_OF_STREAM| Constructor | Description |
|---|---|
UTF16Decoder(java.io.InputStream is) |
Creates a new UTF16Decoder.
|
UTF16Decoder(java.io.InputStream is,
boolean be) |
Creates a new UTF16Decoder.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
readChar() |
Reads the next character.
|
charError, dispose, endOfStreamError, fillBufferpublic UTF16Decoder(java.io.InputStream is)
throws java.io.IOException
is - The stream to decode.java.io.IOExceptionpublic UTF16Decoder(java.io.InputStream is,
boolean be)
is - The stream to decode.be - Whether or not the given stream's byte-order is
big-endian.Copyright ? 2018 Apache Software Foundation. All Rights Reserved.