java.io.Closeable, java.lang.AutoCloseablepublic class ReaderInputStream
extends java.io.InputStream
ReaderInputStream accepts a UTF-16 char stream (Reader) as input and converts it to a UTF-8 byte stream (InputStream) as output.
This is the inverse of java.io.InputStreamReader which converts a binary stream to a character stream.
| Constructor | Description |
|---|---|
ReaderInputStream(java.io.Reader reader) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
int |
read() |
|
int |
read(byte[] b,
int off,
int len) |
public 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 void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOExceptionCopyright © 2018 PostgreSQL Global Development Group. All rights reserved.