public class ReaderInputStream
extends java.io.InputStream
| Constructor | Description |
|---|---|
ReaderInputStream(java.io.Reader reader) |
Creates new input stream from the given reader.
|
ReaderInputStream(java.io.Reader reader,
java.lang.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) |
public ReaderInputStream(java.io.Reader reader)
throws java.io.IOException
reader - Input readerjava.io.IOExceptionpublic ReaderInputStream(java.io.Reader reader,
java.lang.String encoding)
throws java.io.IOException
reader - Input readerencoding - java.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in class java.io.InputStreamjava.io.IOExceptionBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.