|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.util.io.Tag org.freehep.util.io.UndefinedTag
public class UndefinedTag
Tag to hold the data for an Undefined Tag for the TaggedIn/OutputStreams. The data is read in and written as the number of bytes is known.
Field Summary |
---|
Fields inherited from class org.freehep.util.io.Tag |
---|
DEFAULT_TAG |
Constructor Summary | |
---|---|
UndefinedTag()
Create Undefined Tag with 0 length. |
|
UndefinedTag(int tagID,
int[] bytes)
Create Undefined Tag. |
Method Summary | |
---|---|
int |
getTagType()
This returns the type of block |
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,
TaggedOutputStream output)
This writes the information to the given output |
Methods inherited from class org.freehep.util.io.Tag |
---|
getName, getTag, getVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UndefinedTag()
public UndefinedTag(int tagID, int[] bytes)
tagID
- undefined tagIDbytes
- bytes that follow the undefined tagMethod Detail |
---|
public int getTagType()
Tag
getTagType
in class Tag
public Tag read(int tagID, TaggedInputStream input, int len) throws IOException
Tag
read
in class Tag
tagID
- id of the tag to readinput
- stream to read fromlen
- length to read
IOException
- if read failspublic void write(int tagID, TaggedOutputStream output) throws IOException
Tag
write
in class Tag
tagID
- id of tag to writeoutput
- stream to write to
IOException
- if write failspublic String toString()
toString
in class Tag
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |