org.apache.geronimo.deployment.cli
Class InputPrompt
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputPrompt
public InputPrompt(InputStream in,
Writer out)
throws IOException
- Throws:
IOException
InputPrompt
public InputPrompt(InputStream in,
OutputStream out)
throws IOException
- Throws:
IOException
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 © 2006 Apache Software Foundation. All Rights Reserved.