Class 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.