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