Class ConsoleReaderInputStream.ConsoleLineInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    ConsoleReaderInputStream

    private static class ConsoleReaderInputStream.ConsoleLineInputStream
    extends java.io.InputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean eol  
      private int index  
      private java.lang.String line  
      private ConsoleReader reader  
      protected boolean wasNull  
    • 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
    • Field Detail

      • line

        private java.lang.String line
      • index

        private int index
      • eol

        private boolean eol
      • wasNull

        protected boolean wasNull
    • Constructor Detail

      • ConsoleLineInputStream

        public ConsoleLineInputStream​(ConsoleReader reader)
    • Method Detail

      • read

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