| Constructor and Description |
|---|
StringTag(java.lang.String name,
java.lang.String value)
Construct a String tag.
|
| Modifier and Type | Method and Description |
|---|---|
Tag<java.lang.String> |
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.
|
java.lang.String |
getValue()
Get the value of the tag.
|
void |
setName(java.lang.String name)
Set the name of the tag
|
void |
setValue(java.lang.String s)
Set the value of the tag
|
void |
writeData(java.io.DataOutputStream dos)
Write the data of the tag to an output stream.
|
public StringTag(java.lang.String name,
java.lang.String value)
name - The name of the tag.value - The value of the tag.public java.lang.String getValue()
Tagpublic void setValue(java.lang.String s)
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<java.lang.String> createFromData(java.nio.ByteBuffer value, int length)
TagcreateFromData in interface Tag<java.lang.String>value - The array of byteslength - The size of the value in bytes.