Class SystemConsole

  • All Implemented Interfaces:

    public class SystemConsole
    extends java.lang.Object
    implements ConsoleIfc
    Simple SystemConsole class handling user input/output from command-line, including labels and secure password reading
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String readLine()  
      java.lang.String readLine​(java.lang.String label)  
      char[] readPassword​(java.lang.String label)  
      void writeLine​(java.lang.Object obj)  
      void writeLine​(java.lang.String format, java.lang.Object... args)  
      • Methods inherited from class java.lang.Object

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

      • SystemConsole

        public SystemConsole()
    • Method Detail

      • readLine

        public java.lang.String readLine()
        Specified by:
        readLine in interface ConsoleIfc
      • readLine

        public java.lang.String readLine​(java.lang.String label)
        Specified by:
        readLine in interface ConsoleIfc
      • readPassword

        public char[] readPassword​(java.lang.String label)
        Specified by:
        readPassword in interface ConsoleIfc
      • writeLine

        public void writeLine​(java.lang.String format,
                              java.lang.Object... args)
        Specified by:
        writeLine in interface ConsoleIfc
      • writeLine

        public void writeLine​(java.lang.Object obj)
        Specified by:
        writeLine in interface ConsoleIfc