Package org.red5.io.matroska.dtd
Class SimpleBlock
java.lang.Object
org.red5.io.matroska.dtd.Tag
org.red5.io.matroska.dtd.SimpleBlock
Tag representing complex block of different tags
- Author:
- mondain
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleBlock
(String name, VINT id) ConstructorSimpleBlock
(String name, VINT id, VINT size, InputStream inputStream) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getter for binarylong
getter for time codeint
getter for track numberboolean
getter for key framevoid
parse
(InputStream inputStream) method to read and to parse tag from inputStream givenprotected void
putValue
(ByteBuffer bb) method to store tag value toByteBuffer
giventoString()
method to get "pretty" representedTag
-
Constructor Details
-
SimpleBlock
Constructor- Parameters:
name
- - the name of tag to be createdid
- - the id of tag to be created- Throws:
IOException
- - in case of IO error- See Also:
-
SimpleBlock
Constructor- Parameters:
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 from- Throws:
IOException
- - in case of IO error- See Also:
-
-
Method Details
-
parse
method to read and to parse tag from inputStream given- Specified by:
parse
in classTag
- Parameters:
inputStream
- - stream to parse tag data from- Throws:
IOException
- - in case of any IO errorsConverterException
- - in case of any conversion errors
-
putValue
method to store tag value toByteBuffer
given- Specified by:
putValue
in classTag
- Parameters:
bb
- -ByteBuffer
to store value- Throws:
IOException
- - in case of any IO errors
-
getBinary
public byte[] getBinary()getter for binary- Returns:
- - binary
-
getTimeCode
public long getTimeCode()getter for time code- Returns:
- - time code
-
getTrackNumber
public int getTrackNumber()getter for track number- Returns:
- - track number
-
isKeyFrame
public boolean isKeyFrame()getter for key frame- Returns:
- - key frame
-
toString
-