FreeHEP API
Version current

org.freehep.util.io
Class UndefinedTag

java.lang.Object
  extended byorg.freehep.util.io.Tag
      extended byorg.freehep.util.io.UndefinedTag

public class UndefinedTag
extends Tag

Tag to hold the data for an Undefined Tag for the TaggedIn/OutputStreams. The data is read in and written as the number of bytes is known.

Version:
$Id: UndefinedTag.java,v 1.4 2002/02/27 22:05:06 duns Exp $
Author:
Mark Donszelmann, Charles Loomis
Source Code:
UndefinedTag.java

Field Summary
 
Fields inherited from class org.freehep.util.io.Tag
DEFAULT_TAG
 
Constructor Summary
UndefinedTag()
           
UndefinedTag(int tagID, int[] bytes)
           
 
Method Summary
 int getTagType()
          This returns the type of block
 Tag read(int tagID, TaggedInputStream input, int len)
          This reads the information from the given input and returns a new Tag
 String toString()
           
 void write(int tagID, TaggedOutputStream output)
          This writes the information to the given output
 
Methods inherited from class org.freehep.util.io.Tag
getName, getTag, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UndefinedTag

public UndefinedTag()

UndefinedTag

public UndefinedTag(int tagID,
                    int[] bytes)
Method Detail

getTagType

public int getTagType()
Description copied from class: Tag
This returns the type of block

Overrides:
getTagType in class Tag

read

public Tag read(int tagID,
                TaggedInputStream input,
                int len)
         throws IOException
Description copied from class: Tag
This reads the information from the given input and returns a new Tag

Specified by:
read in class Tag
Throws:
IOException

write

public void write(int tagID,
                  TaggedOutputStream output)
           throws IOException
Description copied from class: Tag
This writes the information to the given output

Specified by:
write in class Tag
Throws:
IOException

toString

public String toString()
Specified by:
toString in class Tag

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.