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(java.io.InputStream is)
Creates a new UTF16Decoder.
|
UTF16Decoder(java.io.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(java.io.InputStream is) throws java.io.IOException
is
- The stream to decode.java.io.IOException
public 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 © 2022 Apache Software Foundation. All Rights Reserved.