org.freehep.util.io
Class Action.Unknown

java.lang.Object
  extended by org.freehep.util.io.Action
      extended by org.freehep.util.io.Action.Unknown
Enclosing class:
Action

public static class Action.Unknown
extends Action

Used for not recognized actions.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.freehep.util.io.Action
Action.Unknown
 
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.
 
Method Summary
 Action read(int actionCode, TaggedInputStream input, int length)
          Read an action from the input, with given actioncode and length
 String toString()
           
 void write(int actionCode, TaggedOutputStream output)
          Write an action to output
 
Methods inherited from class org.freehep.util.io.Action
getCode, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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 actionCode
input - input to read from
length - 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 action
output - 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.