Class Console

  • All Implemented Interfaces:
    java.lang.Runnable

    public class Console
    extends java.lang.Object
    implements java.lang.Runnable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private History history  
      private java.io.InputStream in  
      private java.io.PrintStream out  
      private boolean quit  
      private org.apache.felix.service.command.CommandSession session  
    • Constructor Summary

      Constructors 
      Constructor Description
      Console​(org.apache.felix.service.command.CommandSession session, History history)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.CharSequence getLine​(java.lang.String prompt)  
      private java.lang.String getPrompt()  
      void run()  
      • Methods inherited from class java.lang.Object

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

      • session

        private final org.apache.felix.service.command.CommandSession session
      • in

        private final java.io.InputStream in
      • out

        private final java.io.PrintStream out
      • history

        private final History history
      • quit

        private volatile boolean quit
    • Constructor Detail

      • Console

        public Console​(org.apache.felix.service.command.CommandSession session,
                       History history)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • getPrompt

        private java.lang.String getPrompt()
      • getLine

        private java.lang.CharSequence getLine​(java.lang.String prompt)
                                        throws java.io.IOException
        Throws:
        java.io.IOException