| java.lang.Object java.io.Reader com.caucho.vfs.i18n.EncodingReader com.caucho.vfs.i18n.UTF8Reader
UTF8Reader | public class UTF8Reader extends EncodingReader (Code) | | Implements an encoding reader for UTF8.
|
Constructor Summary | |
public | UTF8Reader() Null-arg constructor for instantiation by com.caucho.vfs.Encoding only. |
Method Summary | |
public Reader | create(InputStream is, String javaEncoding) Create a UTF-8 reader based on the readStream.
Parameters: is - the input 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. |
UTF8Reader | public UTF8Reader()(Code) | | Null-arg constructor for instantiation by com.caucho.vfs.Encoding only.
|
create | public Reader create(InputStream is, String javaEncoding)(Code) | | Create a UTF-8 reader based on the readStream.
Parameters: is - the input stream providing the bytes. Parameters: javaEncoding - the JDK name for the encoding. the UTF-8 reader. |
read | public int read() throws IOException(Code) | | Reads into a character buffer using the correct encoding.
|
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. |
|
|