public class JAVAReader extends EncodingReader
Constructor and Description |
---|
JAVAReader()
Null-arg constructor for instantiation by com.caucho.vfs.Encoding only.
|
JAVAReader(java.io.InputStream is)
Create an ISO-8859-1 reader based on the readStream.
|
Modifier and Type | Method and Description |
---|---|
java.io.Reader |
create(java.io.InputStream is,
java.lang.String javaEncoding)
Create a ISO-8859-1 reader based on the readStream.
|
int |
read()
Reads the next character.
|
int |
read(char[] buf,
int offset,
int length)
Reads the next character.
|
close, create, getJavaEncoding, setJavaEncoding
public JAVAReader()
public JAVAReader(java.io.InputStream is)
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[] buf, int offset, int length) throws java.io.IOException
read
in class EncodingReader
buf
- character buffer receiving the data.offset
- starting offset into the buffer.length
- number of characters to read.java.io.IOException