|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.util.io.Tag
Generic Tag to be used by TaggedIn/OutputStreams. The tag contains an ID, name and a version. Concrete subclasses should implement the IO Read and Write methods.
Field Summary | |
static int |
DEFAULT_TAG
This is the tagID for the default tag handler. |
Constructor Summary | |
protected |
Tag(int tagID,
int version)
|
Method Summary | |
String |
getName()
Get the tag name. |
int |
getTag()
Get the tag number. |
int |
getTagType()
This returns the type of block |
int |
getVersion()
Get the version number. |
abstract Tag |
read(int tagID,
TaggedInputStream input,
int len)
This reads the information from the given input and returns a new Tag |
abstract String |
toString()
|
abstract void |
write(int tagID,
TaggedOutputStream output)
This writes the information to the given output |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DEFAULT_TAG
Constructor Detail |
protected Tag(int tagID, int version)
Method Detail |
public int getTag()
public int getVersion()
public String getName()
public int getTagType()
public abstract Tag read(int tagID, TaggedInputStream input, int len) throws IOException
IOException
public abstract void write(int tagID, TaggedOutputStream output) throws IOException
IOException
public abstract String toString()
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |