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