| Modifier and Type | Field and Description |
|---|---|
| private char | |
| private InputStream |
| Access | Constructor and Description |
|---|---|
| public | ReaderUTF16(InputStream
A byte input stream. is, char A byte order in the input stream. bo)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract java. Implements java. Closes the stream. |
| public int | read(char[]
Destination buffer. cbuf, int Offset at which to start storing characters. off, int Maximum number of characters to read. len)Implements abstract java. Reads characters into a portion of an array. |
| public int | Returns: The character read, as an integer in the range 0 to 65535 (0x0000-0xffff), or -1 if the end of the stream has been reached.Overrides java. Reads a single character. |
| ReaderUTF16 | back to summary |
|---|---|
| public ReaderUTF16(InputStream is, char bo) Constructor. Byte order argument can be: 'l' for little-endian or 'b' for big-endian.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract java. Implements java. Closes the stream.
| |
| read | back to summary |
|---|---|
| public int read(char[] cbuf, int off, int len) throws IOException Implements abstract java. Reads characters into a portion of an array.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Reads a single character.
| |