public class ReaderInputStream extends InputStream
| Constructor and Description |
|---|
ReaderInputStream(Reader reader)
Creates new input stream from the given reader.
|
ReaderInputStream(Reader reader,
String encoding)
Creates new input stream from the given reader and encoding.
|
| 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) throws IOException
reader - Input readerIOExceptionpublic ReaderInputStream(Reader reader, String encoding) throws IOException
reader - Input readerencoding - IOExceptionpublic 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 InputStreamIOExceptionBuilt on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.