org.dvb.locator.ip
Class RTSPLocator

java.lang.Object
  extended by org.davic.net.Locator
      extended by org.dvb.locator.ip.RTSPLocator
All Implemented Interfaces:
javax.tv.locator.Locator

public class RTSPLocator
extends Locator

Represents a reference to an IP service accessed by RTSP.


Constructor Summary
RTSPLocator(java.lang.String url)
          Creates a RTSPLocator from the specified URL.
RTSPLocator(java.lang.String url, int serviceID)
          Creates a RTSPLocator from the specified URL.
 
Method Summary
 int getServiceID()
          Returns the serviceID specified when this RTSPLocator was constructed.
 
Methods inherited from class org.davic.net.Locator
hasMultipleTransformations, toExternalForm, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.tv.locator.Locator
equals, hashCode
 

Constructor Detail

RTSPLocator

public RTSPLocator(java.lang.String url)
            throws java.net.MalformedURLException
Creates a RTSPLocator from the specified URL.

Parameters:
url - an "rtsp:" url
Throws:
java.net.MalformedURLException - if the url is not a correct "rtsp:" url

RTSPLocator

public RTSPLocator(java.lang.String url,
                   int serviceID)
            throws java.net.MalformedURLException,
                   java.lang.IllegalArgumentException
Creates a RTSPLocator from the specified URL.

Parameters:
url - an "rtsp:" url
serviceID - a DVB-SI serviceID or MPEG program number to identify one service in a multi-program transport stream
Throws:
java.net.MalformedURLException - if the url is not a correct "rtsp:" url
java.lang.IllegalArgumentException - if the service ID is less than 0 or greater than 0xffff
Method Detail

getServiceID

public int getServiceID()
Returns the serviceID specified when this RTSPLocator was constructed.

Returns:
the serviceID specified when this RTSPLocator or -1 if no serviceID was specified