Skip to main content

Section Filters

1 reply [Last post]
Joined: 2009-06-25


I've been tasked with writing an Xlet that will demonstrate Section Filters.
I've found code at

In the example code, I'm getting stuck on:
// Having set the parameters, we can attach the section
// filter group to a transport stream. This will
// automatically start the filters once the group is
// attached

filterGroup is a SectionFilterGroup, and the attach method takes the parameters of
a TransportStream, a ResourceClient, and an Object.

I can't find where ourTransportStream is defined, so I'm stuck.

I've also looked to see what methods would return a TransportStream or a ResourceClient, but haven't found anything yet.

Any help with this would be greatly appreciated.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2008-03-05

TransportStream object can be obtained from the org.davic.mpeg.tuning.NetworkInterface object, which represents a physical tuning interface. In particular, the following methods return an instance of a TransportStream object:

/** Returns the transport stream to which the network
* Interface is currently tuned. Returns null
* if the network interface is not currently tuned
* to a transport stream, e.g. because it is performing
* a tune action.
* @return Transport stream to which the network interface
* is currently tuned
public TransportStream getCurrentTransportStream() {
return null;

/** Lists the known transport streams that are accessible through
* this network interface. If there are no such streams, returns
* an array with length of zero.
* @return array of transport streams accassible through this network
* interface
public TransportStream[] listAccessibleTransportStreams() {
return null;

As far as ResourceClient object - it is defined as an interface in the org.davic.resources package. It needs to be implemented by your application, so that any resource availability and contention notifications can be delivered via callback mechanism to your application.