|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dvb.dsmcc.DSMCCStream
public class DSMCCStream
The DSMCCStream class is used to manage DSMCC Stream Objects. The BIOP::Stream message shall be read from the network once only, before the constructor of this class returns. Hence methods which return information from that message shall not be affected by any subsequent changes to that information.
NOTE: The NPT mechanism and scheduled stream events that depend on it are known to be vulnerable to disruption in many digital TV distribution networks. Existing deployed network equipment that re-generates the STC is unlikely to be aware of NPT and hence will not make the necessary corresponding modification to STC values inside NPT reference descriptors. Applications should only use NPT where they are confident that the network where they are to be used does not have this problem.
DSMCCObject
Constructor Summary | |
---|---|
DSMCCStream(DSMCCObject aDSMCCObject)
Creates a Stream Object from a DSMCC Object. |
|
DSMCCStream(java.lang.String path)
Create a Stream Object from its pathname. |
|
DSMCCStream(java.lang.String path,
java.lang.String name)
Create a DSMCCStream from its pathname. |
Method Summary | |
---|---|
void |
addNPTListener(NPTListener l)
Add a listener to NPT events on the DSMCCStream object. |
long |
getDuration()
This function returns the duration in milliseconds of the DSMCC Stream. |
long |
getNPT()
This function is used to get the current NPT in milliseconds. |
NPTRate |
getNPTRate()
Get the NPT rate for the DSMCCStream object. |
Locator |
getStreamLocator()
This function returned a Locator referencing the streams of this collection. |
boolean |
isAudio()
This function returns a boolean indicating if the Stream Object refers to an audio stream. |
boolean |
isData()
This function returns a boolean indicating if the Stream Object refers to a data stream. |
boolean |
isMPEGProgram()
This method will return true if the Stream(Event) BIOP message contains a tap with use field BIOP_PROGRAM_USE, otherwise it will return false. |
boolean |
isVideo()
This function returns a boolean indicating if the Stream Object refers to an video stream. |
void |
removeNPTListener(NPTListener l)
Remove a listener to NPT events on the DSMCCStream object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DSMCCStream(DSMCCObject aDSMCCObject) throws NotLoadedException, IllegalObjectTypeException
aDSMCCObject
- the DSMCC object which describes the stream
NotLoadedException
- the DSMCCObject is not loaded.
IllegalObjectTypeException
- the DSMCCObject is
neither a DSMCC Stream nor a DSMCCStreamEventpublic DSMCCStream(java.lang.String path) throws java.io.IOException, IllegalObjectTypeException
path
- the pathname of the DSMCCStream Object.
java.io.IOException
- If an IO error occurred.
IllegalObjectTypeException
- the DSMCCObject is
neither a DSMCC Stream nor a DSMCCStreamEventpublic DSMCCStream(java.lang.String path, java.lang.String name) throws java.io.IOException, IllegalObjectTypeException
path
- the directory path.name
- the name of the DSMCCStream Object.
java.io.IOException
- If an IO error occurred.
IllegalObjectTypeException
- the DSMCCObject is
neither a DSMCC Stream nor a DSMCCStreamEventMethod Detail |
---|
public long getDuration()
public long getNPT() throws MPEGDeliveryException
MPEGDeliveryException
- if there is an error in retrieving NPT reference descriptorspublic Locator getStreamLocator()
isMPEGProgram
method.
public boolean isMPEGProgram()
public boolean isAudio()
public boolean isVideo()
public boolean isData()
public NPTRate getNPTRate() throws MPEGDeliveryException
DSMCCStream
object. Returns null if the
DSMCC stream has no associated NPT rate (i.e. no STR_NPT_USE tap in the list
of taps).
throws
- MPEGDeliveryException if there is an error in retrieving NPT reference descriptors
MPEGDeliveryException
public void addNPTListener(NPTListener l)
DSMCCStream
object.
Adding the same listener a second time has no effect.
l
- the listenerpublic void removeNPTListener(NPTListener l)
DSMCCStream
object.
Removing a non-subscribed listener has no effect.
l
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |