Modifier and Type | Method and Description |
---|---|
Tag<T> |
createFromData(java.nio.ByteBuffer value,
int length)
Turn an array of bytes into the Tag.
|
byte |
getID()
Get the ID of the tag.
|
java.lang.String |
getName()
Get the name of the tag.
|
T |
getValue()
Get the value of the tag.
|
void |
setName(java.lang.String name)
Set the name of the tag
|
void |
setValue(T t)
Set the value of the tag
|
void |
writeData(java.io.DataOutputStream dos)
Write the data of the tag to an output stream.
|
T getValue()
void setValue(T t)
t
- The valuejava.lang.String getName()
void setName(java.lang.String name)
name
- The namevoid writeData(java.io.DataOutputStream dos) throws java.io.IOException
dos
- The output stream.java.io.IOException
- If something goes wrong.Tag<T> createFromData(java.nio.ByteBuffer value, int length)
value
- The array of byteslength
- The size of the value in bytes.byte getID()