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, skip
public ReaderInputStream(Reader delegate)
ReaderInputStream
with the JVM default charset.public ReaderInputStream(Reader delegate, CharsetEncoder encoder)
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2018 Arno Unkrig. All rights reserved.