Class ReaderInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    ReaderInputStream

    public class ReaderInputStream
    extends java.io.InputStream
    Exposes a Reader as an InputStream.
    • Constructor Summary

      Constructors 
      Constructor Description
      ReaderInputStream​(java.io.Reader reader)
      Constructs a ReaderInputStream from a Reader
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int read()  
      • Methods inherited from class java.io.InputStream

        available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReaderInputStream

        public ReaderInputStream​(java.io.Reader reader)
        Constructs a ReaderInputStream from a Reader
        Parameters:
        reader - The reader to expose as an InputStream
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException