| 
 | Java DTV API 1.3 18-Nov-2009 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.dtv.locator.URLLocator
com.sun.dtv.locator.EntityLocator
public abstract class EntityLocator
Locator for entities in the transport stream. These entities can be transport streams, services, elementary streams and events.
| Constructor Summary | |
|---|---|
| EntityLocator(int originalNetworkId,
              int transportId)Create a locator for a transport stream. | |
| EntityLocator(int originalNetworkId,
              int transportId,
              int serviceId)Create a locator for a service. | |
| EntityLocator(int originalNetworkId,
              int transportId,
              int serviceId,
              int contentId)Create a locator for an elementary stream. | |
| EntityLocator(int originalNetworkId,
              int transportId,
              int serviceId,
              int contentId,
              int eventId)Create a locator for an event. | |
| EntityLocator(String url)Create a locator from the given url. | |
| Method Summary | |
|---|---|
|  int | getContentId()Get the content Id of this locator. | 
|  int | getEventId()Get the event Id of this locator. | 
|  MediaLocator | getMediaLocator()Provides the MediaLocatorrepresentation if this
 instance is a locator to aTransportStreamor anElementaryStreamin a format which is supported by
 the JMF implementation. | 
|  int | getOriginalNetworkId()Gets the original network Id of this locator. | 
|  int | getServiceId()Get the service Id of this locator. | 
|  int | getTransportStreamId()Get the transport stream Id of this locator. | 
|  String | toExternalForm()Generates a canonical, string-based representation of this Locator. | 
| Methods inherited from class com.sun.dtv.locator.URLLocator | 
|---|
| equals, hashCode, hasMultipleTransformations, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface javax.tv.locator.Locator | 
|---|
| equals, hashCode, hasMultipleTransformations, toString | 
| Constructor Detail | 
|---|
public EntityLocator(String url)
              throws InvalidLocatorException
url - the url string
InvalidLocatorException - if the locator can not be created from the provided parameters.
public EntityLocator(int originalNetworkId,
                     int transportId)
              throws InvalidLocatorException
originalNetworkId - original network Id, “-1” must be used to specify the default network idtransportId - transport stream Id
InvalidLocatorException - if the locator can not be created from the provided parameters.
public EntityLocator(int originalNetworkId,
                     int transportId,
                     int serviceId)
              throws InvalidLocatorException
originalNetworkId - original network Id, “-1” must be used to specify the default network idtransportId - transport stream IdserviceId - service Id
InvalidLocatorException - if the locator can not be created from the provided parameters.
public EntityLocator(int originalNetworkId,
                     int transportId,
                     int serviceId,
                     int contentId)
              throws InvalidLocatorException
originalNetworkId - original network ID, “-1” must be used to specify the default network idtransportId - transport stream IDserviceId - service IdcontentId - contents Id of the elementary stream
InvalidLocatorException - if the locator can not be created from the provided parameters.
public EntityLocator(int originalNetworkId,
                     int transportId,
                     int serviceId,
                     int contentId,
                     int eventId)
              throws InvalidLocatorException
originalNetworkId - original network ID, “-1” must be used to specify the default network idtransportId - transport stream Id.serviceId - the service Id.contentId - the content Id of the elementary stream.eventId - event Id.
InvalidLocatorException - if the locator can not be created from the provided parameters.| Method Detail | 
|---|
public int getOriginalNetworkId()
public int getTransportStreamId()
public int getServiceId()
public int getContentId()
public int getEventId()
public String toExternalForm()
Locator. The string returned may be entirely
 platform-dependent.  If two locators have identical external
 forms, they refer to the same resource.  However, two locators
 that refer to the same resource may have different external
 forms.
 This method returns the canonical
 form of the string that was used to create the Locator (via
 LocatorFactory.createLocator()).  In generating
 canonical external forms, the implementation will make its best
 effort at resolving locators to one-to-one relationships
 with the resources that they reference.
 The result of this method can be used to create new
 Locator instances as well as other types of
 locators, such as JMF MediaLocators and
 URLs.
toExternalForm in interface LocatortoExternalForm in class URLLocatorLocator.toExternalForm()public MediaLocator getMediaLocator()
MediaLocator representation if this
 instance is a locator to a TransportStream or an 
 ElementaryStream in a format which is supported by
 the JMF implementation.
| 
 | Java DTV API 1.3 18-Nov-2009 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||