public class ReaderInputStream extends InputStream
Reader and encodes them into data bytes. In a sense, this class is the
complement of the InputStreamReader.| Constructor and Description |
|---|
ReaderInputStream(Reader delegate)
Creates a
ReaderInputStream with the JVM default charset. |
ReaderInputStream(Reader delegate,
Charset charset) |
ReaderInputStream(Reader delegate,
CharsetEncoder encoder) |
ReaderInputStream(Reader delegate,
String charsetName) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
mark, markSupported, read, reset, skippublic ReaderInputStream(Reader delegate)
ReaderInputStream with the JVM default charset.public ReaderInputStream(Reader delegate, CharsetEncoder encoder)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
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 InputStreamIOExceptionCopyright © 2018 Arno Unkrig. All rights reserved.