FreeHEP API
Version v1.2

org.freehep.util.io
Class Action

java.lang.Object
  |
  +--org.freehep.util.io.Action
Direct Known Subclasses:
Action.Unknown, SWFAction

public abstract class Action
extends Object

Generic Action, to be used with the TagIn/OutputStreams. An action can have an ActionCode, a length as well as parameters.

Version:
$Id: Action.java,v 1.3 2001/11/05 16:09:01 duns Exp $
Author:
Mark Donszelmann, Charles Loomis

Nested Class Summary
static class Action.Unknown
          Used for not recognized actions.
 
Constructor Summary
protected Action(int code)
           
 
Method Summary
 int getCode()
           
 String getName()
           
abstract  Action read(int actionCode, TaggedInputStream input, int length)
           
 String toString()
           
abstract  void write(int actionCode, TaggedOutputStream input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Action

protected Action(int code)
Method Detail

read

public abstract Action read(int actionCode,
                            TaggedInputStream input,
                            int length)
                     throws IOException
IOException

write

public abstract void write(int actionCode,
                           TaggedOutputStream input)
                    throws IOException
IOException

getCode

public int getCode()

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Object

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.