Documentation of 'org.freehep.util.io.Action' Java class
Action
org.freehep.util.io

Class Action

  • Direct Known Subclasses:
    Action.Unknown


    public abstract class Action
    extends java.lang.Object
    Generic Action, to be used with the TagIn/OutputStreams. An action can have an ActionCode, a length as well as parameters.
    • Method Detail

      • read

        public abstract Action read(int actionCode,
                                    TaggedInputStream input,
                                    int length)
                             throws java.io.IOException
        Read an action from the input, with given actioncode and length
        Parameters:
        actionCode - decoded actionCode
        input - input to read from
        length - length to read
        Returns:
        action corresponding to actionCode
        Throws:
        java.io.IOException - if read fails
      • write

        public abstract void write(int actionCode,
                                   TaggedOutputStream output)
                            throws java.io.IOException
        Write an action to output
        Parameters:
        actionCode - actionCode to use for this action
        output - output to write to
        Throws:
        java.io.IOException - if write fails
      • getCode

        public int getCode()
        Returns:
        actionCode
      • getName

        public java.lang.String getName()
        Returns:
        name of the action
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.