|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.davic.mpeg.sections.Section
public class Section
This class describes a single section as filtered from an MPEG transport stream. A cloned Section object is a new and separate object. It is unaffected by changes in the state of the original Section object or restarting of the SectionFilter the source Section object originated from. The clone method must be implemented without declaring exceptions.
Method Summary | |
---|---|
java.lang.Object |
clone()
Create a copy of this Section object. |
boolean |
current_next_indicator()
This method returns the value of the corresponding field from an MPEG-2 section header. |
byte |
getByteAt(int index)
This method returns one byte from the filtered data. |
byte[] |
getData()
This method returns all data from the filtered section in the Section object, including the section header. |
byte[] |
getData(int index,
int length)
This method returns the specified part of the filtered data. |
boolean |
getFullStatus()
This method reads whether a Section object contains valid data. |
int |
last_section_number()
This method returns the value of the corresponding field from an MPEG-2 section header. |
boolean |
private_indicator()
This method returns the value of the corresponding field from an MPEG-2 section header. |
int |
section_length()
This method returns the value of the corresponding field from an MPEG-2 section header. |
int |
section_number()
This method returns the value of the corresponding field from an MPEG-2 section header. |
boolean |
section_syntax_indicator()
This method returns the value of the corresponding field from an MPEG-2 section header. |
void |
setEmpty()
This method sets a Section object such that any data contained within it is no longer valid. |
int |
table_id_extension()
This method returns the value of the corresponding field from an MPEG-2 section header. |
int |
table_id()
This method returns the value of the corresponding field from an MPEG-2 section header. |
short |
version_number()
This method returns the value of the corresponding field from an MPEG-2 section header. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public byte[] getData() throws NoDataAvailableException
NoDataAvailableException
- if no valid data is available.public byte[] getData(int index, int length) throws NoDataAvailableException, java.lang.IndexOutOfBoundsException
index
- defines within the filtered section the index of the first byte of the data to be retrieved.
The first byte of the section (the table_id field) has index 1.length
- defines the number of consecutive bytes from the filtered section to be retrieved.
NoDataAvailableException
- if no valid data is available.
java.lang.IndexOutOfBoundsException
- if any part of the filtered data requested would be
outside the range of data in the section.public byte getByteAt(int index) throws NoDataAvailableException, java.lang.IndexOutOfBoundsException
index
- defines within the filtered section the index of the byte to be retrieved. The first byte of
the section (the table_id field) has index 1.
NoDataAvailableException
- if no valid data is available.
java.lang.IndexOutOfBoundsException
- if the byte requested would be outside the range of
data in the section.public int table_id() throws NoDataAvailableException
NoDataAvailableException
- thrown if no valid data is availablepublic boolean section_syntax_indicator() throws NoDataAvailableException
NoDataAvailableException
- thrown if no valid data is availablepublic boolean private_indicator() throws NoDataAvailableException
NoDataAvailableException
- thrown if no valid data is availablepublic int section_length() throws NoDataAvailableException
NoDataAvailableException
- thrown if no valid data is availablepublic int table_id_extension() throws NoDataAvailableException
NoDataAvailableException
- thrown if no valid data is availablepublic short version_number() throws NoDataAvailableException
NoDataAvailableException
- thrown if no valid data is availablepublic boolean current_next_indicator() throws NoDataAvailableException
NoDataAvailableException
- thrown if no valid data is availablepublic int section_number() throws NoDataAvailableException
NoDataAvailableException
- thrown if no valid data is availablepublic int last_section_number() throws NoDataAvailableException
NoDataAvailableException
- thrown if no valid data is availablepublic boolean getFullStatus()
public void setEmpty()
public java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |