org.apache.geronimo.deployment.cli
Class InputPrompt

java.lang.Object
  extended by org.apache.geronimo.deployment.cli.InputPrompt

public class InputPrompt
extends Object

Prompts a user for input; optionally masking.

Uses the JLine library to provide a rich user experence.


Constructor Summary
InputPrompt(InputStream in, OutputStream out)
           
InputPrompt(InputStream in, Writer out)
           
 
Method Summary
 String getInput(String prompt)
           
 String getInput(String prompt, char mask)
           
 String getInput(String prompt, Character mask)
          Displays the prompt, grabs the input.
 String getPassword(String prompt)
          Displays the prompt, grabs the input masking with '*'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputPrompt

public InputPrompt(InputStream in,
                   Writer out)
            throws IOException
Throws:
IOException

InputPrompt

public InputPrompt(InputStream in,
                   OutputStream out)
            throws IOException
Throws:
IOException
Method Detail

getInput

public String getInput(String prompt,
                       Character mask)
                throws IOException
Displays the prompt, grabs the input.

Throws:
IOException

getInput

public String getInput(String prompt,
                       char mask)
                throws IOException
Throws:
IOException

getInput

public String getInput(String prompt)
                throws IOException
Throws:
IOException

getPassword

public String getPassword(String prompt)
                   throws IOException
Displays the prompt, grabs the input masking with '*'.

Throws:
IOException


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.