Package revxrsal.commands.cli
Interface ConsoleActor
- All Superinterfaces:
AutoCloseable
,Closeable
,CommandActor
- All Known Implementing Classes:
CommandLineActor
Represents the
CommandActor
of a command-line application-
Method Summary
Modifier and TypeMethodDescription@NotNull PrintStream
Returns thePrintStream
that is being used to send errors to the console.@NotNull InputStream
Returns theInputStream
that is being used to take input from the console.@NotNull PrintStream
Returns thePrintStream
that is being used to send normal output to the console.@NotNull Scanner
Returns theScanner
that is being polled for input.Methods inherited from interface revxrsal.commands.command.CommandActor
as, error, errorLocalized, getCommandHandler, getLocale, getName, getTranslator, getUniqueId, reply, replyLocalized
-
Method Details
-
getInputStream
Returns theInputStream
that is being used to take input from the console.- Returns:
- The console's input stream.
-
getOutputStream
Returns thePrintStream
that is being used to send normal output to the console.- Returns:
- The console's output stream.
-
getErrorStream
Returns thePrintStream
that is being used to send errors to the console.- Returns:
- The console's output stream.
-
getScanner
Returns theScanner
that is being polled for input.- Returns:
- The console scanner.
-