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

Class TaggedOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.lang.AutoCloseable, FinishableOutputStream, TaggedOutput


    public abstract class TaggedOutputStream
    extends ByteCountOutputStream
    implements TaggedOutput
    Class to write Tagged blocks to a Stream. The tagged blocks (Tags) contain a tagID and a Length, so that known and unknown tags (read with the TaggedInputStream) can again be written. The stream also allows to write Actions, which again come with a actionCode and a length. A concrete implementation of this stream should encode/write the TagHeader. All Concrete tags should be inherited from the Tag class and implement their write methods.
    • Constructor Detail

      • TaggedOutputStream

        public TaggedOutputStream(java.io.OutputStream out,
                                  TagSet tagSet,
                                  ActionSet actionSet)
        Create a Tagged Output stream.
        Parameters:
        out - stream to write
        tagSet - allowable tag set
        actionSet - allowable action set
      • TaggedOutputStream

        public TaggedOutputStream(java.io.OutputStream out,
                                  TagSet tagSet,
                                  ActionSet actionSet,
                                  boolean littleEndian)
        Create a Tagged Output stream.
        Parameters:
        out - stream to write
        tagSet - allowable tag set
        actionSet - allowable action set
        littleEndian - true if stream is little endian
    • Method Detail

      • writeTag

        public void writeTag(Tag tag)
                      throws java.io.IOException
        Description copied from interface: TaggedOutput
        Write a tag.
        Specified by:
        writeTag in interface TaggedOutput
        Parameters:
        tag - tag to write
        Throws:
        java.io.IOException - if write fails
      • writeAction

        public void writeAction(Action action)
                         throws java.io.IOException
        Write action.
        Parameters:
        action - action to write
        Throws:
        java.io.IOException - if write fails

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.