public abstract class Action extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Action.Unknown
Used for not recognized actions.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Action(int code) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
String |
getName() |
abstract Action |
read(int actionCode,
TaggedInputStream input,
int length)
Read an action from the input, with given actioncode and length
|
String |
toString() |
abstract void |
write(int actionCode,
TaggedOutputStream output)
Write an action to output
|
public abstract Action read(int actionCode, TaggedInputStream input, int length) throws IOException
actionCode - decoded actionCodeinput - input to read fromlength - length to readIOException - if read failspublic abstract void write(int actionCode,
TaggedOutputStream output)
throws IOException
actionCode - actionCode to use for this actionoutput - output to write toIOException - if write failspublic int getCode()
public String getName()
Copyright © 2016. All rights reserved.