Package org.basex.util
Class ConsoleReader
java.lang.Object
org.basex.util.ConsoleReader
- All Implemented Interfaces:
AutoCloseable,PasswordReader
Console reader.
- Author:
- BaseX Team 2005-21, BSD License, Dimitar Popov
-
Constructor Details
-
ConsoleReader
public ConsoleReader()
-
-
Method Details
-
readLine
Reads next line. If no input, then the method blocks the thread.- Parameters:
prompt- prompt- Returns:
- next line or
nullif EOF is reached
-
close
public abstract void close()- Specified by:
closein interfaceAutoCloseable
-
get
Creates a new instance.- Returns:
- instance of console reader
-