public class ReaderInputStream extends InputStream
| Constructor and Description |
|---|
ReaderInputStream(Reader reader,
String charsetName)
Constructor.
|
| 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 reader, String charsetName) throws IllegalCharsetNameException, UnsupportedCharsetException
reader - the source reader; requiredcharsetName - the canonical name or alias of a Java CharSet;
requiredIllegalCharsetNameException - if charsetName is illegalUnsupportedCharsetException - if charsetName is unavailablepublic 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 © 2025. All rights reserved.