public class InvalidTag extends java.lang.Object implements Tag<byte[]>
ODS.registerCustomTag(Tag)
.
ODS will only return this tag when the ODS.allowUndefinedTags(boolean)
is enabled.
This class is not to be constructed.
Constructor and Description |
---|
InvalidTag(java.lang.String name)
Deprecated.
Do not use this constructor.
|
Modifier and Type | Method and Description |
---|---|
Tag<byte[]> |
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.
|
byte[] |
getValue()
Get the value of the tag.
|
void |
setName(java.lang.String name)
Set the name of the tag
|
void |
setValue(byte[] bytes)
Set the value of the tag
|
void |
writeData(java.io.DataOutputStream dos)
Write the data of the tag to an output stream.
|
public InvalidTag(java.lang.String name)
name
- The name.public byte[] getValue()
Tag
public void setValue(byte[] bytes)
Tag
public java.lang.String getName()
Tag
public void setName(java.lang.String name)
Tag
public void writeData(java.io.DataOutputStream dos) throws java.io.IOException
Tag
public Tag<byte[]> createFromData(java.nio.ByteBuffer value, int length)
Tag
createFromData
in interface Tag<byte[]>
value
- The array of byteslength
- The size of the value in bytes.