Package org.red5.io
Interface ITag
- All Superinterfaces:
IoConstants
- All Known Implementing Classes:
ImmutableTag,Tag
A Tag represents the contents or payload of a streamable file.
- Author:
- The Red5 Project, Dominick Accattato (daccattato@gmail.com), Luke Hubbard, Codegent Ltd (luke@codegent.com)
-
Field Summary
Fields inherited from interface org.red5.io.IoConstants
FLAG_RATE_11_KHZ, FLAG_RATE_22_KHZ, FLAG_RATE_44_KHZ, FLAG_RATE_48_KHZ, FLAG_RATE_5_5_KHZ, FLAG_SIZE_16_BIT, FLAG_SIZE_8_BIT, FLAG_TYPE_MONO, FLAG_TYPE_STEREO, MASK_SOUND_FORMAT, MASK_SOUND_RATE, MASK_SOUND_SIZE, MASK_SOUND_TYPE, MASK_VIDEO_CODEC, MASK_VIDEO_FRAMETYPE, TYPE_AUDIO, TYPE_ENCRYPTED, TYPE_ENCRYPTED_AUDIO, TYPE_ENCRYPTED_METADATA, TYPE_ENCRYPTED_VIDEO, TYPE_METADATA, TYPE_VIDEO -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.mina.core.buffer.IoBuffergetBody()Return the body ByteBufferintReturn the size of the bodyorg.apache.mina.core.buffer.IoBuffergetData()Returns the data as a ByteBufferbyteGet the data typeintReturns previous tag sizeintReturn the timestampvoidsetBody(org.apache.mina.core.buffer.IoBuffer body) Set the body ByteBuffer.voidsetBodySize(int size) Set the size of the body.voidsetDataType(byte datatype) Set the data type.voidsetPreviousTagSize(int size) Set the size of the previous tag.voidsetTimestamp(int timestamp) Set the timestamp.
-
Method Details
-
getBody
org.apache.mina.core.buffer.IoBuffer getBody()Return the body ByteBuffer- Returns:
- ByteBuffer Body as byte buffer
-
getBodySize
int getBodySize()Return the size of the body- Returns:
- int Body size
-
getData
org.apache.mina.core.buffer.IoBuffer getData()Returns the data as a ByteBuffer- Returns:
- ByteBuffer Data as byte buffer
-
getDataType
byte getDataType()Get the data type- Returns:
- byte Data type as byte
-
getPreviousTagSize
int getPreviousTagSize()Returns previous tag size- Returns:
- int Previous tag size
-
getTimestamp
int getTimestamp()Return the timestamp- Returns:
- int Timestamp
-
setBody
void setBody(org.apache.mina.core.buffer.IoBuffer body) Set the body ByteBuffer.- Parameters:
body- Body as ByteBuffer
-
setBodySize
void setBodySize(int size) Set the size of the body.- Parameters:
size- Body size
-
setDataType
void setDataType(byte datatype) Set the data type.- Parameters:
datatype- Data type
-
setPreviousTagSize
void setPreviousTagSize(int size) Set the size of the previous tag.- Parameters:
size- Previous tag size
-
setTimestamp
void setTimestamp(int timestamp) Set the timestamp.- Parameters:
timestamp- Timestamp
-