public interface Command
setNextState(State)
and
handleState()
are used for that.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the command and all its assigned resources.
|
void |
handleState()
Handles the current state of the Command.
|
boolean |
isDone()
Tells the caller if the Command is done, meaning if all states are
handled.
|
void |
setNextState(State currentState)
Used by the Command itself to set the next state in its process.
|
void handleState() throws java.io.IOException
java.io.IOException
void setNextState(State currentState)
currentState
- boolean isDone()
void close()