|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.util.io.TagHeader
public class TagHeader
Keeps the tagID and Length of a specific tag. To be used in the InputStream to return the tagID and Length, and in the OutputStream to write them.
Constructor Summary | |
---|---|
TagHeader(int tagID,
long length)
Creates a tag header |
Method Summary | |
---|---|
long |
getLength()
|
int |
getTag()
|
void |
setLength(long length)
Sets the length of the tag |
void |
setTag(int tagID)
Sets the tag id |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TagHeader(int tagID, long length)
tagID
- id of taglength
- length of the tag, including the headerMethod Detail |
---|
public void setTag(int tagID)
tagID
- new tag idpublic int getTag()
public void setLength(long length)
length
- new lengthpublic long getLength()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |