public class JDKReader extends EncodingReader
Constructor and Description |
---|
JDKReader()
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 JDK-based reader.
|
int |
read()
Reads into a character buffer using the correct encoding.
|
close, create, getJavaEncoding, read, setJavaEncoding
public JDKReader()
public java.io.Reader create(java.io.InputStream is, java.lang.String javaEncoding) throws java.io.UnsupportedEncodingException
create
in class EncodingReader
is
- the input stream providing the bytes.javaEncoding
- the JDK name for the encoding.java.io.UnsupportedEncodingException
public int read() throws java.io.IOException
read
in class EncodingReader
java.io.IOException