|
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.DataSectionFilter com.sun.dtv.filtering.SingleFilter
public class SingleFilter
This class defines a section filter intended to be used to capture a single
data section. When a section matching the specified filter pattern is found,
SingleFilter
objects will stop.
An DataSectionAvailableEvent
will be generated when a DataSection
is
captured. Filtering will then stop.
DataSection
,
DataSectionFilter
Method Summary | |
---|---|
DataSection |
getSection()
This method retrieves a single DataSection
object describing a section which matched the active filter definition. |
Methods inherited from class com.sun.dtv.filtering.DataSectionFilter |
---|
addSectionFilterListener, clearGreaterThanFilter, clearLessThanFilter, clearPositiveFilter, clearTableId, clearXorFilter, removeSectionFilterListener, setGreaterThanFilter, setLessThanFilter, setPid, setPositiveFilter, setTableId, setTimeOut, setXorFilter, startFiltering, stopFiltering |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public DataSection getSection() throws FilterInterruptException
DataSection
object describing a section which matched the active filter definition.
This method will never block and will return null if no section has
yet matched.
Each time a new filtering operation is started, a new
DataSection
object will be created. All references
except any in the application to the previous DataSection
object will be removed. All data accessing methods on the previous
DataSection object will throw a NoDataAvailableException
.
DataSection
object or
null
.
FilterInterruptException
- if the filter was interrupted before
the required amount of data was filtered.
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |