com.ibatis.common.io
public class ReaderInputStream extends InputStream
| Field Summary | |
|---|---|
| protected byte[] | buffer |
| protected ByteArrayOutputStream | byteArrayOut |
| protected char[] | chars |
| protected int | index |
| protected int | length |
| protected Reader | reader |
| protected Writer | writer |
| Constructor Summary | |
|---|---|
| ReaderInputStream(Reader reader)
Constructor to supply a Reader
| |
| ReaderInputStream(Reader reader, String encoding)
Constructor to supply a Reader and an encoding
| |
| Method Summary | |
|---|---|
| int | available() |
| void | close() |
| protected void | fillBuffer() |
| int | read() |
| int | read(byte[] data, int off, int len) |
Parameters: reader - the Reader used by the InputStream
Parameters: reader - the Reader used by the InputStream encoding - the encoding to use for the InputStream
Throws: UnsupportedEncodingException if the encoding is not supported
See Also: java.io.InputStream#available()
See Also: java.io.InputStream#close()
See Also: java.io.InputStream#read()
See Also: java.io.InputStream#read(byte[], int, int)