org.dvb.locator.ip
Class RTSPLocator
java.lang.Object
org.davic.net.Locator
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.tv.locator.Locator |
equals, hashCode |
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:" urlserviceID
- 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
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