Closeable
, AutoCloseable
public class ReaderInputStream extends InputStream
Constructor | 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 | Description |
---|---|---|
int |
available() |
|
void |
close() |
|
int |
read() |
|
int |
read(byte[] b,
int off,
int len) |
mark, markSupported, read, readAllBytes, readNBytes, reset, skip, transferTo
public ReaderInputStream(Reader reader) throws IOException
reader
- Input readerIOException
public ReaderInputStream(Reader reader, String encoding) throws IOException
reader
- Input readerencoding
- IOException
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
close
in class InputStream
IOException
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.