FreeHEP API
Version current

org.freehep.util.io
Class Action

java.lang.Object
  extended byorg.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
Source Code:
Action.java

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
Throws:
IOException

write

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

getCode

public int getCode()

getName

public String getName()

toString

public String toString()

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.