org.freehep.util.io
Class UndefinedTag
- java.lang.Object
-
- org.freehep.util.io.Tag
-
- org.freehep.util.io.UndefinedTag
-
public class UndefinedTag extends Tag
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
Constructors Constructor and Description UndefinedTag()Create Undefined Tag with 0 length.UndefinedTag(int tagID, int[] bytes)Create Undefined Tag.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetTagType()This returns the type of blockTagread(int tagID, TaggedInputStream input, int len)This reads the information from the given input and returns a new Tagjava.lang.StringtoString()voidwrite(int tagID, TaggedOutputStream output)This writes the information to the given output-
Methods inherited from class org.freehep.util.io.Tag
getName, getTag, getVersion
-
-
-
-
Constructor Detail
-
UndefinedTag
public UndefinedTag()
Create Undefined Tag with 0 length.
-
UndefinedTag
public UndefinedTag(int tagID, int[] bytes)Create Undefined Tag.- Parameters:
tagID- undefined tagIDbytes- bytes that follow the undefined tag
-
-
Method Detail
-
getTagType
public int getTagType()
Description copied from class:TagThis returns the type of block- Overrides:
getTagTypein classTag- Returns:
- tag type
-
read
public Tag read(int tagID, TaggedInputStream input, int len) throws java.io.IOException
Description copied from class:TagThis reads the information from the given input and returns a new Tag
-
write
public void write(int tagID, TaggedOutputStream output) throws java.io.IOExceptionDescription copied from class:TagThis writes the information to the given output
-
-
DMelt 3.0 © DataMelt by jWork.ORG