| java.lang.Object java.io.Reader com.caucho.vfs.i18n.EncodingReader com.caucho.vfs.i18n.UTF16Reader
UTF16Reader | public class UTF16Reader extends EncodingReader (Code) | | Implements an encoding reader for UTF-16.
|
Constructor Summary | |
public | UTF16Reader() Null-arg constructor for instantiation by com.caucho.vfs.Encoding only. |
Method Summary | |
public Reader | create(InputStream is, String javaEncoding) Create a UTF-16 reader based on the readStream.
Parameters: is - the read stream providing the bytes. Parameters: javaEncoding - the JDK name for the encoding. | public int | read() Reads into a character buffer using the correct encoding. | public int | read(char[] cbuf, int off, int len) Reads into a character buffer using the correct encoding.
Parameters: cbuf - character buffer receiving the data. Parameters: off - starting offset into the buffer. Parameters: len - number of characters to read. |
UTF16Reader | public UTF16Reader()(Code) | | Null-arg constructor for instantiation by com.caucho.vfs.Encoding only.
|
create | public Reader create(InputStream is, String javaEncoding)(Code) | | Create a UTF-16 reader based on the readStream.
Parameters: is - the read stream providing the bytes. Parameters: javaEncoding - the JDK name for the encoding. the UTF-16 reader. |
read | public int read() throws IOException(Code) | | Reads into a character buffer using the correct encoding.
the next character or -1 on end of file. |
read | public int read(char[] cbuf, int off, int len) throws IOException(Code) | | Reads into a character buffer using the correct encoding.
Parameters: cbuf - character buffer receiving the data. Parameters: off - starting offset into the buffer. Parameters: len - number of characters to read. the number of characters read or -1 on end of file. |
|
|