public abstract class ConsoleReader extends Object implements AutoCloseable, PasswordReader
Constructor and Description |
---|
ConsoleReader() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close() |
static ConsoleReader |
get()
Creates a new instance.
|
abstract String |
readLine(String prompt)
Reads next line.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
password
public abstract String readLine(String prompt)
prompt
- promptnull
if EOF is reachedpublic abstract void close()
close
in interface AutoCloseable
public static ConsoleReader get()
Copyright © 2005–2023 BaseX Team. All rights reserved.