public class ConsolePrompt extends Object
System.out) .| Constructor and Description |
|---|
ConsolePrompt() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDomain() |
static String |
getPartition() |
static String |
getPassword() |
static String |
getRealm() |
static String |
getUsername() |
static String |
readTrimmedLine(BufferedReader reader)
Reads a single trimmed-line from the reader.
|
static void |
show()
Prompts for credentials and reads them from console (
System.out). |
static void |
writeToConsole(String message)
Writes the given message to the console (
System.out)
and flushes it to make sure that it is written. |
public static void show()
System.out).public static final void writeToConsole(String message)
System.out)
and flushes it to make sure that it is written.message - message to be written to the console. Even null is accepted.public static final String readTrimmedLine(BufferedReader reader) throws IOException
reader - to read fromIOException - propogates any IOException encountered while reading a linepublic static String getUsername()
public static String getPassword()
public static String getDomain()
public static String getPartition()
public static String getRealm()
Copyright © 2016 Eclipse Stardust. All Rights Reserved.