Class ReaderInputStream

java.lang.Object
java.io.InputStream
org.postgresql.util.ReaderInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class ReaderInputStream extends 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.