public class ReaderInputStream extends InputStream
| Constructor and Description |
|---|
ReaderInputStream(Reader reader,
Charset charset)
Creates a new inputstream that will replace any malformed/unmappable input
|
ReaderInputStream(Reader reader,
CharsetEncoder encoder) |
ReaderInputStream(Reader reader,
CharsetEncoder encoder,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] bbuf,
int off,
int len) |
available, mark, markSupported, read, reset, skippublic ReaderInputStream(Reader reader, Charset charset)
reader - charset - public ReaderInputStream(Reader reader, CharsetEncoder encoder)
public ReaderInputStream(Reader reader, CharsetEncoder encoder, int bufferSize)
public int read(byte[] bbuf,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2019. All rights reserved.