public abstract class Console extends PrintStream implements IBase
| Modifier and Type | Class and Description |
|---|---|
static class |
Console.COLOR |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_HEIGHT |
static int |
DEFAULT_WIDTH |
protected LinkedList<String> |
history |
out| Constructor and Description |
|---|
Console() |
Console(PrintStream out) |
Console(PrintStream out,
boolean flush,
String charset) |
| Modifier and Type | Method and Description |
|---|---|
void |
cr() |
static Console |
create()
Factory to return the correct implementation of console.
|
ConsoleProgressBar |
createProgressBar() |
abstract Console.COLOR |
getBackgroundColor() |
abstract int |
getCursorX() |
abstract int |
getCursorY() |
abstract Console.COLOR |
getForegroundColor() |
abstract int |
getHeight() |
abstract int |
getWidth() |
abstract boolean |
isBlink() |
abstract boolean |
isBold() |
abstract boolean |
isSupportBlink() |
abstract boolean |
isSupportBold() |
abstract boolean |
isSupportColor() |
abstract boolean |
isSupportCursor() |
abstract boolean |
isSupportSize() |
void |
printLine() |
void |
printLine(char c) |
String |
readLine() |
abstract String |
readLine(LinkedList<String> history) |
char[] |
readPassword() |
abstract void |
setBlink(boolean blink) |
abstract void |
setBold(boolean bold) |
abstract void |
setColor(Console.COLOR foreground,
Console.COLOR background) |
abstract void |
setCursor(int x,
int y) |
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, writewritepublic static final int DEFAULT_WIDTH
public static final int DEFAULT_HEIGHT
protected LinkedList<String> history
public Console()
public Console(PrintStream out)
public Console(PrintStream out, boolean flush, String charset) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static Console create()
public String readLine()
public abstract String readLine(LinkedList<String> history)
public char[] readPassword()
public void cr()
public abstract boolean isSupportSize()
public abstract int getWidth()
public abstract int getHeight()
public abstract boolean isSupportCursor()
public abstract void setCursor(int x,
int y)
public abstract int getCursorX()
public abstract int getCursorY()
public ConsoleProgressBar createProgressBar()
public abstract boolean isSupportColor()
public abstract void setColor(Console.COLOR foreground, Console.COLOR background)
public abstract Console.COLOR getForegroundColor()
public abstract Console.COLOR getBackgroundColor()
public abstract boolean isSupportBlink()
public abstract void setBlink(boolean blink)
public abstract boolean isBlink()
public abstract boolean isSupportBold()
public abstract void setBold(boolean bold)
public abstract boolean isBold()
public void printLine()
public void printLine(char c)
Copyright © 2014. All rights reserved.