|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.util.io.Tag
public abstract class 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
tagID
- id of the tag to readinput
- stream to read fromlen
- length to read
IOException
- if read failspublic abstract void write(int tagID, TaggedOutputStream output) throws IOException
tagID
- id of tag to writeoutput
- stream to write to
IOException
- if write failspublic abstract String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |