public class SimpleConsole extends Console
SimpleConsole class.
Console.COLORDEFAULT_HEIGHT, DEFAULT_WIDTH, historyout| Constructor and Description |
|---|
SimpleConsole()
Constructor for SimpleConsole.
|
SimpleConsole(InputStream in,
PrintStream out)
Constructor for SimpleConsole.
|
SimpleConsole(InputStream in,
PrintStream out,
boolean flush,
String charset)
Constructor for SimpleConsole.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
cleanup.
|
Console.COLOR |
getBackgroundColor()
getBackgroundColor.
|
int |
getCursorX()
getCursorX.
|
int |
getCursorY()
getCursorY.
|
Console.COLOR |
getForegroundColor()
getForegroundColor.
|
int |
getHeight()
getHeight.
|
int |
getWidth()
getWidth.
|
boolean |
isBlink()
isBlink.
|
boolean |
isBold()
isBold.
|
boolean |
isSupportBlink()
isSupportBlink.
|
boolean |
isSupportBold()
isSupportBold.
|
boolean |
isSupportColor()
isSupportColor.
|
boolean |
isSupportCursor()
isSupportCursor.
|
boolean |
isSupportSize()
isSupportSize.
|
String |
readLine(LinkedList<String> history)
readLine.
|
void |
setBlink(boolean blink)
setBlink.
|
void |
setBold(boolean bold)
setBold.
|
void |
setColor(Console.COLOR foreground,
Console.COLOR background)
setColor.
|
void |
setCursor(int x,
int y)
setCursor.
|
cr, create, createProgressBar, printLine, printLine, readLine, readPasswordappend, 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 SimpleConsole()
Constructor for SimpleConsole.
public SimpleConsole(InputStream in, PrintStream out, boolean flush, String charset) throws UnsupportedEncodingException
Constructor for SimpleConsole.
in - a InputStream object.out - a PrintStream object.flush - a boolean.charset - a String object.UnsupportedEncodingException - if any.public SimpleConsole(InputStream in, PrintStream out)
Constructor for SimpleConsole.
in - a InputStream object.out - a PrintStream object.public String readLine(LinkedList<String> history)
readLine.
readLine in class Consolehistory - a LinkedList object.String object.public boolean isSupportSize()
isSupportSize.
isSupportSize in class Consolepublic int getHeight()
getHeight.
public boolean isSupportCursor()
isSupportCursor.
isSupportCursor in class Consolepublic void setCursor(int x,
int y)
setCursor.
public int getCursorX()
getCursorX.
getCursorX in class Consolepublic int getCursorY()
getCursorY.
getCursorY in class Consolepublic boolean isSupportColor()
isSupportColor.
isSupportColor in class Consolepublic void setColor(Console.COLOR foreground, Console.COLOR background)
setColor.
setColor in class Consoleforeground - a Console.COLOR object.background - a Console.COLOR object.public Console.COLOR getForegroundColor()
getForegroundColor.
getForegroundColor in class ConsoleConsole.COLOR object.public Console.COLOR getBackgroundColor()
getBackgroundColor.
getBackgroundColor in class ConsoleConsole.COLOR object.public boolean isSupportBlink()
isSupportBlink.
isSupportBlink in class Consolepublic void setBlink(boolean blink)
setBlink.
public boolean isBlink()
isBlink.
public boolean isSupportBold()
isSupportBold.
isSupportBold in class Consolepublic void setBold(boolean bold)
setBold.
Copyright © 2016. All Rights Reserved.