public class Section extends Object implements Cloneable
| Modifier and Type | Method and Description |
|---|---|
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.
|
public byte[] getData()
throws NoDataAvailableException
NoDataAvailableException - if no valid data is available.public byte[] getData(int index,
int length)
throws NoDataAvailableException,
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.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,
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.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 Object clone()
Copyright © 2012 code4tv.com. All Rights Reserved.