| Modifier and Type | Field and Description |
|---|---|
protected Lock |
lock |
protected Scanner |
scanner |
protected PrintWriter |
writer |
| Constructor and Description |
|---|
BaseConsole()
Констркутор по умолчанию
|
BaseConsole(InputStream instr,
Charset cs) |
| Modifier and Type | Method and Description |
|---|---|
Scanner |
getScanner() |
void |
print(String text)
Отображает текст на терминале
|
void |
println()
Печатает символ перевода строки
|
String |
readLine()
Читает строку из консоли
|
protected Scanner scanner
protected PrintWriter writer
protected final Lock lock
public BaseConsole()
public BaseConsole(InputStream instr, Charset cs)
Copyright © 2017. All rights reserved.