public class DateTag extends UnsignedIntegerTag
| Modifier and Type | Field and Description |
|---|---|
static long |
DELAY |
static long |
NANO_MULTIPLIER |
| Constructor and Description |
|---|
DateTag(String name,
VINT id)
Constructor
|
DateTag(String name,
VINT id,
VINT size,
InputStream inputStream)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getDate()
getter for value as
Date |
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 |
DateTag |
setValue(Date value)
setter for value, updates the size of this tag
|
String |
toString()
method to get "pretty" represented
Tag |
getValue, setValuepublic static final long NANO_MULTIPLIER
public static final long DELAY
public DateTag(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 DateTag(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 parse(InputStream inputStream) throws IOException
Tagparse in class UnsignedIntegerTaginputStream - - stream to parse tag data fromIOException - - in case of any IO errorsTag.parse(InputStream)protected void putValue(ByteBuffer bb) throws IOException
TagByteBuffer givenputValue in class UnsignedIntegerTagbb - - ByteBuffer to store valueIOException - - in case of any IO errorsTag.putValue(ByteBuffer)public DateTag setValue(Date value)
value - - value to be setpublic String toString()
TagtoString in class UnsignedIntegerTagCopyright © 2005–2017 Red5. All rights reserved.