Class DefaultInputHandler

java.lang.Object
org.codehaus.plexus.components.interactivity.AbstractInputHandler
org.codehaus.plexus.components.interactivity.DefaultInputHandler
All Implemented Interfaces:
InputHandler

@Named public class DefaultInputHandler extends AbstractInputHandler
Default input handler, that uses the console.
Author:
Brett Porter
  • Constructor Details

    • DefaultInputHandler

      public DefaultInputHandler()
  • Method Details

    • readLine

      public String readLine() throws IOException
      Description copied from interface: InputHandler
      Read a single line of input, swalling the newline at the end. If the input can be echoed, it will be.
      Returns:
      the line read
      Throws:
      IOException
    • readPassword

      public String readPassword() throws IOException
      Description copied from interface: InputHandler
      Read a single line of input, swalling the newline at the end. This method guarantees input is not echoed.
      Returns:
      the line read
      Throws:
      IOException