public class ReaderInputStream extends InputStream
| Constructor and Description |
|---|
ReaderInputStream(Reader in) |
ReaderInputStream(Reader in,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read()
Reads from the
Reader, returning the same value. |
int |
read(byte[] b,
int off,
int len)
Reads from the
Reader into a byte array |
void |
reset() |
read, skippublic int read()
throws IOException
Reader, returning the same value.read in class InputStreamReader.IOException - if the original Reader fails to be readpublic int read(byte[] b,
int off,
int len)
throws IOException
Reader into a byte arrayread in class InputStreamb - the byte array to read intooff - the offset in the byte arraylen - the length in the byte array to fillIOException - if an error occurspublic void mark(int readlimit)
mark in class InputStreampublic int available()
throws IOException
available in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2012 cedarsoft GmbH. All Rights Reserved.