Class ShellConsole.JLineShellConsoleV2

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.InputStream in  
      private java.lang.Object reader  
    • Constructor Summary

      Constructors 
      Constructor Description
      JLineShellConsoleV2​(java.lang.Object reader, java.nio.charset.Charset cs)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void flush()
      Flushes the console's output
      java.io.InputStream getIn()
      Returns the underlying InputStream
      void print​(java.lang.String s)
      Prints a single string to the console
      void println()
      Prints the newline character-sequence to the console
      void println​(java.lang.String s)
      Prints a string and the newline character-sequence to the console
      java.lang.String readLine()
      Reads a single line from the console
      java.lang.String readLine​(java.lang.String prompt)
      Reads a single line from the console and sets the console's prompt to prompt
      • Methods inherited from class java.lang.Object

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

      • reader

        private final java.lang.Object reader
      • in

        private final java.io.InputStream in
    • Constructor Detail

      • JLineShellConsoleV2

        JLineShellConsoleV2​(java.lang.Object reader,
                            java.nio.charset.Charset cs)
    • Method Detail

      • getIn

        public java.io.InputStream getIn()
        Description copied from class: ShellConsole
        Returns the underlying InputStream
        Specified by:
        getIn in class ShellConsole
      • readLine

        public java.lang.String readLine()
                                  throws java.io.IOException
        Description copied from class: ShellConsole
        Reads a single line from the console
        Specified by:
        readLine in class ShellConsole
        Throws:
        java.io.IOException
      • readLine

        public java.lang.String readLine​(java.lang.String prompt)
                                  throws java.io.IOException
        Description copied from class: ShellConsole
        Reads a single line from the console and sets the console's prompt to prompt
        Specified by:
        readLine in class ShellConsole
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Description copied from class: ShellConsole
        Flushes the console's output
        Specified by:
        flush in class ShellConsole
        Throws:
        java.io.IOException
      • print

        public void print​(java.lang.String s)
                   throws java.io.IOException
        Description copied from class: ShellConsole
        Prints a single string to the console
        Specified by:
        print in class ShellConsole
        Throws:
        java.io.IOException
      • println

        public void println()
                     throws java.io.IOException
        Description copied from class: ShellConsole
        Prints the newline character-sequence to the console
        Specified by:
        println in class ShellConsole
        Throws:
        java.io.IOException
      • println

        public void println​(java.lang.String s)
                     throws java.io.IOException
        Description copied from class: ShellConsole
        Prints a string and the newline character-sequence to the console
        Specified by:
        println in class ShellConsole
        Throws:
        java.io.IOException