public class UndefinedTag extends Tag
DEFAULT_TAG
Constructor and Description |
---|
UndefinedTag()
Create Undefined Tag with 0 length.
|
UndefinedTag(int tagID,
int[] bytes)
Create Undefined Tag.
|
Modifier and Type | Method and Description |
---|---|
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
|
getName, getTag, getVersion
public UndefinedTag()
public UndefinedTag(int tagID, int[] bytes)
tagID
- undefined tagIDbytes
- bytes that follow the undefined tagpublic 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 readIOException
- 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 toIOException
- if write failsCopyright © 2016. All rights reserved.