public class UTF16Decoder extends AbstractCharDecoder
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
bigEndian
Whether the stream's byte-order is big-endian.
|
buffer, BUFFER_SIZE, count, inputStream, positionEND_OF_STREAM| Constructor and Description |
|---|
UTF16Decoder(InputStream is)
Creates a new UTF16Decoder.
|
UTF16Decoder(InputStream is,
boolean be)
Creates a new UTF16Decoder.
|
| Modifier and Type | Method and Description |
|---|---|
int |
readChar()
Reads the next character.
|
charError, dispose, endOfStreamError, fillBufferpublic UTF16Decoder(InputStream is) throws IOException
is - The stream to decode.IOExceptionpublic UTF16Decoder(InputStream is, boolean be)
is - The stream to decode.be - Whether or not the given stream's byte-order is
big-endian.public int readChar()
throws IOException
IOExceptionCopyright © 2000–2021 Apache Software Foundation. All rights reserved.