public abstract class ConsoleReader extends Object implements AutoCloseable
Constructor and Description |
---|
ConsoleReader() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close() |
static ConsoleReader |
get()
Creates a new instance.
|
PasswordReader |
pwReader()
Create a new password reader for this console.
|
abstract String |
readLine(String prompt)
Reads next line.
|
protected abstract String |
readPassword()
Reads a password.
|
public abstract String readLine(String prompt)
prompt
- promptnull
if EOF is reachedprotected abstract String readPassword()
public abstract void close()
close
in interface AutoCloseable
public PasswordReader pwReader()
PasswordReader
public static ConsoleReader get()
Copyright © 2005–2015 BaseX Team. All rights reserved.