Class DefaultConsole

  • All Implemented Interfaces:
    Console

    public class DefaultConsole
    extends java.lang.Object
    implements Console
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void print​(java.lang.String msg)  
      void println​(java.lang.String msg)  
      char[] readPassword​(boolean echoInput)  
      • Methods inherited from class java.lang.Object

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

      • DefaultConsole

        public DefaultConsole​(java.io.PrintStream target)
      • DefaultConsole

        public DefaultConsole()
    • Method Detail

      • print

        public void print​(java.lang.String msg)
        Specified by:
        print in interface Console
      • println

        public void println​(java.lang.String msg)
        Specified by:
        println in interface Console
      • readPassword

        public char[] readPassword​(boolean echoInput)
        Specified by:
        readPassword in interface Console