Package org.jline.console
Class CommandInput
java.lang.Object
org.jline.console.CommandInput
Deprecated.
Encapsulates the input and output streams for a command execution.
This class provides access to the command name, arguments, terminal, and I/O streams
needed for command execution in the console environment.
-
Constructor Summary
ConstructorsConstructorDescriptionCommandInput(String command, Object[] xargs, CommandRegistry.CommandSession session) Deprecated.Creates a new CommandInput with the specified command, arguments, and session.CommandInput(String command, Object[] args, Terminal terminal, InputStream in, PrintStream out, PrintStream err) Deprecated.Creates a new CommandInput with the specified command, arguments, terminal, and I/O streams. -
Method Summary
Modifier and TypeMethodDescriptionString[]args()Deprecated.Returns the command arguments as strings.command()Deprecated.Returns the command name.err()Deprecated.Returns the error stream for this command.in()Deprecated.Returns the input stream for this command.out()Deprecated.Returns the output stream for this command.session()Deprecated.Creates and returns a new CommandSession using this command's terminal and I/O streams.terminal()Deprecated.Returns the terminal instance for this command.Object[]xargs()Deprecated.Returns the original command arguments as objects.
-
Constructor Details
-
CommandInput
Deprecated.Creates a new CommandInput with the specified command, arguments, and session.- Parameters:
command- the command namexargs- the command arguments as objectssession- the command session containing terminal and I/O streams
-
CommandInput
public CommandInput(String command, Object[] args, Terminal terminal, InputStream in, PrintStream out, PrintStream err) Deprecated.Creates a new CommandInput with the specified command, arguments, terminal, and I/O streams.- Parameters:
command- the command nameargs- the command arguments as objectsterminal- the terminal instancein- the input streamout- the output streamerr- the error stream
-
-
Method Details
-
command
-
args
Deprecated.Returns the command arguments as strings.- Returns:
- the command arguments as strings
-
xargs
Deprecated.Returns the original command arguments as objects.- Returns:
- the command arguments as objects
-
terminal
Deprecated.Returns the terminal instance for this command.- Returns:
- the terminal instance
-
in
Deprecated.Returns the input stream for this command.- Returns:
- the input stream
-
out
Deprecated.Returns the output stream for this command.- Returns:
- the output stream
-
err
Deprecated.Returns the error stream for this command.- Returns:
- the error stream
-
session
Deprecated.Creates and returns a new CommandSession using this command's terminal and I/O streams.- Returns:
- a new command session
-