| java.lang.Object java.io.Reader com.sun.ukit.jaxp.ReaderUTF16
ReaderUTF16 | public class ReaderUTF16 extends Reader (Code) | | UTF-16 encoded stream reader.
|
Constructor Summary | |
public | ReaderUTF16(InputStream is, char bo) Constructor.
Byte order argument can be: 'l' for little-endian or 'b' for big-endian.
Parameters: is - A byte input stream. Parameters: bo - A byte order in the input stream. |
Method Summary | |
public void | close() Closes the stream. | public int | read(char[] cbuf, int off, int len) Reads characters into a portion of an array. | public int | read() Reads a single character. |
ReaderUTF16 | public ReaderUTF16(InputStream is, char bo)(Code) | | Constructor.
Byte order argument can be: 'l' for little-endian or 'b' for big-endian.
Parameters: is - A byte input stream. Parameters: bo - A byte order in the input stream. |
read | public int read(char[] cbuf, int off, int len) throws IOException(Code) | | Reads characters into a portion of an array.
Parameters: cbuf - Destination buffer. Parameters: off - Offset at which to start storing characters. Parameters: len - Maximum number of characters to read. exception: IOException - If any IO errors occur. |
read | public int read() throws IOException(Code) | | Reads a single character.
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. exception: IOException - If any IO errors occur. |
|
|