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, skip
public 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 InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2018 JBoss by Red Hat. All rights reserved.