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()
Tagpublic void setValue(byte[] bytes)
Tagpublic java.lang.String getName()
Tagpublic void setName(java.lang.String name)
Tagpublic void writeData(java.io.DataOutputStream dos)
throws java.io.IOException
Tagpublic Tag<byte[]> createFromData(java.nio.ByteBuffer value, int length)
TagcreateFromData in interface Tag<byte[]>value - The array of byteslength - The size of the value in bytes.