public class CompoundTag extends Tag
| Constructor and Description |
|---|
CompoundTag(String name,
VINT id)
Constructor
|
CompoundTag(String name,
VINT id,
VINT size,
InputStream inputStream)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
CompoundTag |
add(Tag ch)
method to add child tag to this
CompoundTag, updates the size on add |
Tag |
get(String tagName) |
int |
getNumberOfSubElements() |
void |
parse(InputStream inputStream)
method to read and to parse tag from inputStream given
|
protected void |
putValue(ByteBuffer bb)
method to store tag value to
ByteBuffer given |
void |
readData(InputStream inputStream)
method to read tag data from inputStream given
|
String |
toString()
method to get "pretty" represented
Tag |
int |
totalSize()
method to get total size of this tag: "header" + "contents"
|
public CompoundTag(String name, VINT id) throws IOException
name - - the name of tag to be createdid - - the id of tag to be createdIOException - - in case of IO errorTag.Tag(String, VINT)public CompoundTag(String name, VINT id, VINT size, InputStream inputStream) throws IOException
name - - the name of tag to be createdid - - the id of tag to be createdsize - - the size of tag to be createdinputStream - - stream to read tag data fromIOException - - in case of IO errorTag.Tag(String, VINT, VINT, InputStream)public void readData(InputStream inputStream) throws IOException
TagreadData in class TaginputStream - - stream to read tag data fromIOException - - in case of any IO errorsTag.readData(InputStream)public void parse(InputStream inputStream) throws IOException, ConverterException
Tagparse in class TaginputStream - - stream to parse tag data fromIOException - - in case of any IO errorsConverterException - - in case of any conversion errorsTag.parse(InputStream)public int totalSize()
Tagprotected void putValue(ByteBuffer bb) throws IOException
TagByteBuffer givenputValue in class Tagbb - - ByteBuffer to store valueIOException - - in case of any IO errorsTag.putValue(ByteBuffer)public CompoundTag add(Tag ch)
CompoundTag, updates the size on addch - - child Tag to be addedpublic int getNumberOfSubElements()
Copyright © 2005–2017 Red5. All rights reserved.