FreeHEP API
Version current

org.freehep.graphicsio.cgm
Class CGMDummyTag

java.lang.Object
  extended byorg.freehep.util.io.Tag
      extended byorg.freehep.graphicsio.cgm.CGMTag
          extended byorg.freehep.graphicsio.cgm.CGMDummyTag

public class CGMDummyTag
extends CGMTag

Dummy TAG, for reading to keep length and tagID.

Version:
$Id: CGMDummyTag.java,v 1.1 2003/12/02 23:40:29 duns Exp $
Author:
Mark Donszelmann
Source Code:
CGMDummyTag.java

Field Summary
 
Fields inherited from class org.freehep.util.io.Tag
DEFAULT_TAG
 
Constructor Summary
CGMDummyTag(int tagID, CGMInputStream cgm, int len)
           
 
Method Summary
 int getLength()
           
 CGMTag read(int tagID, CGMInputStream cgm, int len)
           
 String toString()
           
 void write(int tagID, CGMOutputStream cgm)
          Writes the extra tag information to the outputstream in binary format.
 void write(int tagID, CGMWriter cgm)
          Writes the full tag to the Writer in Clear Text format.
 
Methods inherited from class org.freehep.graphicsio.cgm.CGMTag
read, write
 
Methods inherited from class org.freehep.util.io.Tag
getName, getTag, getTagType, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CGMDummyTag

public CGMDummyTag(int tagID,
                   CGMInputStream cgm,
                   int len)
            throws IOException
Method Detail

read

public CGMTag read(int tagID,
                   CGMInputStream cgm,
                   int len)
            throws IOException
Overrides:
read in class CGMTag
Throws:
IOException

write

public void write(int tagID,
                  CGMOutputStream cgm)
           throws IOException
Description copied from class: CGMTag
Writes the extra tag information to the outputstream in binary format. This implementation writes nothing, but concrete tags may override this method. This method is called just after the TagHeader is written.

Overrides:
write in class CGMTag
Parameters:
tagID - id of the tag
cgm - Binary CGM output stream
Throws:
IOException

write

public void write(int tagID,
                  CGMWriter cgm)
           throws IOException
Description copied from class: CGMTag
Writes the full tag to the Writer in Clear Text format.

Specified by:
write in class CGMTag
Parameters:
tagID - id of the tag
cgm - Clear Text CGM Writer
Throws:
IOException

getLength

public int getLength()

toString

public String toString()
Overrides:
toString in class CGMTag
Returns:
a description of the tagName and tagID

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.