@Deprecated public class ReaderInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buffer
Deprecated.
|
protected ByteArrayOutputStream |
byteArrayOut
Deprecated.
|
protected char[] |
chars
Deprecated.
|
protected int |
index
Deprecated.
|
protected int |
length
Deprecated.
|
protected Reader |
reader
Deprecated.
|
protected Writer |
writer
Deprecated.
|
| Constructor and Description |
|---|
ReaderInputStream(Reader reader)
Deprecated.
|
ReaderInputStream(Reader reader,
String encoding)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Deprecated.
|
void |
close()
Deprecated.
|
protected void |
fillBuffer()
Deprecated.
|
int |
read()
Deprecated.
|
int |
read(byte[] data,
int off,
int len)
Deprecated.
|
mark, markSupported, read, reset, skipprotected Reader reader
protected ByteArrayOutputStream byteArrayOut
protected Writer writer
protected char[] chars
protected byte[] buffer
protected int index
protected int length
public ReaderInputStream(Reader reader)
public ReaderInputStream(Reader reader, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionprotected void fillBuffer()
throws IOException
IOExceptionpublic int read(byte[] data,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOException