public class Console extends Object
| Modifier and Type | Field and Description |
|---|---|
PrintWriter |
error |
PrintWriter |
info |
Scanner |
input |
PrintWriter |
verbose |
| Constructor and Description |
|---|
Console(PrintWriter info,
PrintWriter error,
InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
static Console |
create() |
boolean |
getStacktraces() |
boolean |
getVerbose() |
int |
handleException(Throwable throwable) |
void |
pressReturn() |
String |
readline(String message) |
String |
readline(String message,
String dflt) |
void |
setStacktraces(boolean s) |
void |
setVerbose(boolean verbose) |
public final PrintWriter info
public final PrintWriter verbose
public final PrintWriter error
public final Scanner input
public Console(PrintWriter info, PrintWriter error, InputStream in)
public static Console create()
public boolean getStacktraces()
public void setStacktraces(boolean s)
public boolean getVerbose()
public void setVerbose(boolean verbose)
public void pressReturn()
public int handleException(Throwable throwable)
Copyright © 2016–2017 1&1. All rights reserved.