public abstract class Tag extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TAG
This is the tagID for the default tag handler.
|
Modifier | Constructor and Description |
---|---|
protected |
Tag(int tagID,
int version) |
Modifier and Type | Method and Description |
---|---|
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
|
public static final int DEFAULT_TAG
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 readIOException
- if read failspublic abstract void write(int tagID, TaggedOutputStream output) throws IOException
tagID
- id of tag to writeoutput
- stream to write toIOException
- if write failsCopyright © 2016. All rights reserved.