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, position
END_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, fillBuffer
public UTF16Decoder(InputStream is) throws IOException
is
- The stream to decode.IOException
public 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
IOException
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.