public class UTF16_REVReader extends EncodingReader
Constructor and Description |
---|
UTF16_REVReader()
Null-arg constructor for instantiation by com.caucho.vfs.Encoding only.
|
Modifier and Type | Method and Description |
---|---|
java.io.Reader |
create(java.io.InputStream is,
java.lang.String javaEncoding)
Create a UTF-16 reader based on the readStream.
|
int |
read()
Reads into a character buffer using the correct encoding.
|
int |
read(char[] cbuf,
int off,
int len)
Reads into a character buffer using the correct encoding.
|
close, create, getJavaEncoding, setJavaEncoding
public UTF16_REVReader()
public java.io.Reader create(java.io.InputStream is, java.lang.String javaEncoding)
create
in class EncodingReader
is
- the input stream providing the bytes.javaEncoding
- the JDK name for the encoding.public int read() throws java.io.IOException
read
in class EncodingReader
java.io.IOException
public int read(char[] cbuf, int off, int len) throws java.io.IOException
read
in class EncodingReader
cbuf
- character buffer receiving the data.off
- starting offset into the buffer.len
- number of characters to read.java.io.IOException