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