|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.dtv.filtering.DataSectionDataBuffer
public class DataSectionDataBuffer
This class encapsulates a portion of a Transport Stream Section payload.
DataSection
Field Summary | |
---|---|
protected byte[] |
data
The byte array that actually holds the media data chunk for this Buffer . |
static int |
FLAG_IS_COPY
Indicates that this data is a copy or clone and changing it will not affect the data it was generated from. |
protected int |
flags
A flag mask that describes the boolean attributes enabled for this Buffer . |
protected int |
length
States how many samples are valid in the array. |
protected int |
offset
Points to the starting point (offset) into the array where the valid data begins. |
Constructor Summary | |
---|---|
DataSectionDataBuffer()
|
Method Summary | |
---|---|
Object |
clone()
Clone a buffer. |
void |
copy(DataSectionDataBuffer buffer)
Copy the attributes from the specified Buffer into this
Buffer . |
void |
copy(DataSectionDataBuffer buffer,
boolean swapData)
Copy the attributes from the specified Buffer into this
Buffer . |
byte[] |
getData()
Gets the internal byte array for this Buffer . |
int |
getFlags()
Gets the mask of the flags set for this Buffer . |
int |
getLength()
Gets the length of the valid data in this Buffer . |
int |
getOffset()
Gets the offset of the valid data in this Buffer . |
void |
setData(byte[] data)
Sets the internal byte array for this Buffer . |
void |
setFlags(int flags)
Sets the flag mask for this Buffer . |
void |
setLength(int length)
Sets the length of the valid data in this Buffer . |
void |
setOffset(int offset)
Sets the offset of the valid data in this Buffer . |
String |
toString()
The String representation of the object. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int flags
Buffer
.
This mask is set to the logical sum of all of the flags that are set.
FLAG_IS_COPY
protected byte[] data
Buffer
.
protected int length
protected int offset
public static final int FLAG_IS_COPY
Constructor Detail |
---|
public DataSectionDataBuffer()
Method Detail |
---|
public int getFlags()
Buffer
.
The integer value of the mask is equal to the logical sum of
the flags that are set.
FLAG_IS_COPY
,
setFlags(int)
public void setFlags(int flags)
Buffer
.
The integer value of the mask is equal to the logical sum of
the flags that are set.
flags
- The specific flags to be set for the buffer objectFLAG_IS_COPY
,
getFlags()
public byte[] getData()
Buffer
.
Buffer
.data
,
setData(byte[])
public void setData(byte[] data)
Buffer
.
data
- the byte array to be setdata
,
getData()
public int getLength()
Buffer
.
Buffer
.length
,
setLength(int)
public void setLength(int length)
Buffer
.
length
- The length of the valid data in the data byte array.length
,
getLength()
public int getOffset()
Buffer
.
offset
,
setOffset(int)
public void setOffset(int offset)
Buffer
.
offset
- The starting point of the valid data in the data
byte array.offset
,
getOffset()
public void copy(DataSectionDataBuffer buffer)
Buffer
into this
Buffer
.
buffer
- The input Buffer
the copy the attributes
from.public void copy(DataSectionDataBuffer buffer, boolean swapData)
Buffer
into this
Buffer
. If swapData is true, the data values are swapped
between the buffers, otherwise the data value is copied.
buffer
- The input Buffer
the copy the attributes
from.swapData
- Specifies whether the data objects are to be swapped.public Object clone()
clone
in class Object
public String toString()
String
representation of the object.
toString
in class Object
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |