org.freehep.graphicsio.cgm
Class CGMDummyTag
java.lang.Object
|
+--org.freehep.util.io.Tag
|
+--org.freehep.graphicsio.cgm.CGMTag
|
+--org.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
CGMDummyTag
public CGMDummyTag(int tagID,
CGMInputStream cgm,
int len)
throws IOException
read
public CGMTag read(int tagID,
CGMInputStream cgm,
int len)
throws IOException
- Overrides:
read
in class CGMTag
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 tagcgm
- Binary CGM output stream
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 tagcgm
- Clear Text CGM Writer
IOException
getLength
public int getLength()
toString
public String toString()
- Overrides:
toString
in class CGMTag
- Returns:
- a description of the tagName and tagID
Copyright © 2000-2003 FreeHEP, All Rights Reserved.