Package commandManager
Class CommandExecutor
java.lang.Object
commandManager.CommandExecutor
Class for executing commands. Provides different inputs for command executing.
-
Constructor Summary
ConstructorDescriptionCommandExecutor
(ArrayList<CommandDescription> commands, InputStream input, CommandMode mode) Constructor :/ -
Method Summary
Modifier and TypeMethodDescriptionvoid
Start executing commands from InputStream.
-
Constructor Details
-
CommandExecutor
public CommandExecutor(ArrayList<CommandDescription> commands, InputStream input, CommandMode mode) throws CommandsNotLoadedException Constructor :/- Parameters:
commands
- array of commandsinput
- commands stream (File, System.in, e.t.c.)mode
- variant of command behavior (see CommandMode enum)- Throws:
CommandsNotLoadedException
-
-
Method Details
-
startExecuting
public void startExecuting()Start executing commands from InputStream.
-