public class ReaderInputStream extends InputStream
CharsetEncoder class.| Constructor and Description |
|---|
ReaderInputStream(Reader reader)
Constructor.
|
ReaderInputStream(Reader reader,
CharacterSet characterSet)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close()
Closes the wrapped reader.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
mark, markSupported, read, reset, skippublic ReaderInputStream(Reader reader) throws IOException
CharacterSet.ISO_8859_1 character set by
default.reader - The reader to wrap as an input stream.IOExceptionpublic ReaderInputStream(Reader reader, CharacterSet characterSet) throws IOException
reader - The reader to wrap as an input stream.characterSet - The character set to use for encoding.IOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionCopyright © 2005–2025. All rights reserved.