V - the tag's value typepublic class Tag<V>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name |
protected TagType<V> |
type |
protected V |
value |
| Constructor and Description |
|---|
Tag(TagType<V> type,
java.lang.String name,
V value) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
TagType<V> |
getType() |
V |
getValue() |
static Tag<?> |
readNamed(java.io.DataInput input) |
static Tag<?> |
readNamed(java.io.InputStream input) |
static Tag<?> |
readNameless(java.io.DataInput input) |
static Tag<?> |
readNameless(java.io.InputStream input) |
void |
writeNamed(java.io.DataOutput output) |
void |
writeNameless(java.io.DataOutput output) |
protected java.lang.String name
protected V value
public void writeNameless(java.io.DataOutput output)
throws java.io.IOException
java.io.IOExceptionpublic void writeNamed(java.io.DataOutput output)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getName()
public V getValue()
public static Tag<?> readNamed(java.io.DataInput input) throws java.io.IOException
java.io.IOExceptionpublic static Tag<?> readNamed(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Tag<?> readNameless(java.io.DataInput input) throws java.io.IOException
java.io.IOExceptionpublic static Tag<?> readNameless(java.io.InputStream input) throws java.io.IOException
java.io.IOException