FreeHEP API
Version current

org.freehep.util.io
Class TagSet

java.lang.Object
  extended byorg.freehep.util.io.TagSet
Direct Known Subclasses:
CGMTagSet, EMFTagSet, SWFSpriteTagSet

public class TagSet
extends Object

Class to keep registered Tags, which should be used by the TaggedIn/OutputStream. A set of recognized Tags can be added to this class. A concrete implementation of this stream should install all allowed tags.

Version:
$Id: TagSet.java,v 1.2 2001/11/05 16:09:01 duns Exp $
Author:
Mark Donszelmann, Charles Loomis
Source Code:
TagSet.java

Field Summary
protected  Tag defaultTag
          The default tag handler.
protected  Map tags
          This holds the individual tags.
 
Constructor Summary
TagSet()
           
 
Method Summary
 void addTag(Tag tag)
          Add a new tag to this set.
 boolean exists(int tagID)
           
 Tag get(int tagID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tags

protected Map tags
This holds the individual tags.


defaultTag

protected Tag defaultTag
The default tag handler.

Constructor Detail

TagSet

public TagSet()
Method Detail

addTag

public void addTag(Tag tag)
Add a new tag to this set. If the tagID returned is the DEFAULT_TAG, then the default handler is set to the given handler.


get

public Tag get(int tagID)

exists

public boolean exists(int tagID)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.