|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.freehep.util.io.Tag
org.freehep.graphicsio.cgm.CGMTag
CGM specific tag, from which all other CGM Tags inherit.
Field Summary |
Fields inherited from class org.freehep.util.io.Tag |
DEFAULT_TAG |
Constructor Summary | |
protected |
CGMTag(int elementClass,
int id,
int version)
Constructs a CGMTag. |
Method Summary | |
CGMTag |
read(int tagID,
CGMInputStream cgm,
int len)
|
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,
CGMOutputStream cgm)
Writes the extra tag information to the outputstream in binary format. |
abstract void |
write(int tagID,
CGMWriter cgm)
Writes the full tag to the Writer in Clear Text format. |
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, getTagType, getVersion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected CGMTag(int elementClass, int id, int version)
elementClass
- class of the elementid
- id of the elementversion
- cgm version in which this element was first supportedMethod Detail |
public Tag read(int tagID, TaggedInputStream input, int len) throws IOException
Tag
read
in class Tag
IOException
public CGMTag read(int tagID, CGMInputStream cgm, int len) throws IOException
IOException
public void write(int tagID, TaggedOutputStream output) throws IOException
Tag
write
in class Tag
IOException
public void write(int tagID, CGMOutputStream cgm) throws IOException
tagID
- id of the tagcgm
- Binary CGM output stream
IOException
public abstract void write(int tagID, CGMWriter cgm) throws IOException
tagID
- id of the tagcgm
- Clear Text CGM Writer
IOException
public String toString()
toString
in class Tag
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |