|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.davic.net.Locator
org.dvb.locator.ip.UnicastLocator
public class UnicastLocator
Represents a reference to an IP service delivered by unicast UDP where the delivery of the service is not initiated by the implementation. The only requirement on implementations when locators of this type are used is to listen on the specified port number for content to arrive.
The intended use case for this locator is as follows
Constructor Summary | |
---|---|
UnicastLocator(int port)
Creates a UnicastLocator from the specified local port number. |
|
UnicastLocator(int port,
int serviceID)
Creates a UnicastLocator from the specified local port number and service ID. |
Method Summary | |
---|---|
int |
getPort()
Returns the port specified when this UnicastLocator
was constructed. |
int |
getServiceID()
Returns the serviceID specified when this UnicastLocator
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 |
---|
public UnicastLocator(int port)
UnicastLocator
from the specified local port number.
port
- the local port number on which the content will be deliveredpublic UnicastLocator(int port, int serviceID) throws java.net.MalformedURLException, java.lang.IllegalArgumentException
UnicastLocator
from the specified local port number and service ID.
port
- the local port number on which the content will be deliveredserviceID
- a DVB-SI serviceID or MPEG program number to identify
one service in a multi-program transport stream
java.net.MalformedURLException
- if the port number is not valid
java.lang.IllegalArgumentException
- if the service ID is less than 0 or greater than 0xffffMethod Detail |
---|
public int getPort()
UnicastLocator
was constructed.
UnicastLocator
or -1 if no port was specifiedpublic int getServiceID()
UnicastLocator
was constructed.
UnicastLocator
or -1 if no serviceID was specified
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |