org.freehep.util.io
Class Action.Unknown
java.lang.Object
org.freehep.util.io.Action
org.freehep.util.io.Action.Unknown
- Enclosing class:
- Action
public static class Action.Unknown
- extends Action
Used for not recognized actions.
Constructor Summary |
Action.Unknown()
Create a special Action for Unknown Actions, with actioncode 0. |
Action.Unknown(int actionCode)
Create a special Action for Unknown Actions, with given action code. |
Action.Unknown
public Action.Unknown()
- Create a special Action for Unknown Actions, with actioncode 0.
Action.Unknown
public Action.Unknown(int actionCode)
- Create a special Action for Unknown Actions, with given action code.
- Parameters:
actionCode
- code to be used for Unknown Action.
read
public Action read(int actionCode,
TaggedInputStream input,
int length)
throws IOException
- Description copied from class:
Action
- Read an action from the input, with given actioncode and length
- Specified by:
read
in class Action
- Parameters:
actionCode
- decoded actionCodeinput
- input to read fromlength
- length to read
- Returns:
- action corresponding to actionCode
- Throws:
IOException
- if read fails
write
public void write(int actionCode,
TaggedOutputStream output)
throws IOException
- Description copied from class:
Action
- Write an action to output
- Specified by:
write
in class Action
- Parameters:
actionCode
- actionCode to use for this actionoutput
- output to write to
- Throws:
IOException
- if write fails
toString
public String toString()
- Overrides:
toString
in class Action
Copyright © 2000-2007 FreeHEP. All Rights Reserved.