| Modifier and Type | Field and Description |
|---|---|
static String |
AlternateProtocol |
static String |
BouquetProtocol |
static String |
CarouselProtocol |
static String |
NetworkProtocol |
static String |
ProgramEventDescriptionProtocol |
static String |
ProgramEventProtocol |
static String |
ServiceComponentProtocol |
static String |
ServiceDescriptionProtocol |
static String |
ServiceProtocol
The following are the forms of the various protocols, TBD yet
to be implemented is a way of escaping the : and / characters
which might be imbedded into some the protocol arguments.
|
static String |
TransportProtocol |
static String |
TransportStreamProtocol |
| Constructor and Description |
|---|
LocatorImpl(String locatorStr) |
| Modifier and Type | Method and Description |
|---|---|
static Locator |
createProgramEventLocator(String serviceName,
String programName) |
static boolean |
equals(Locator locator1,
Locator locator2)
Compare two locators for equality.
|
boolean |
equals(Object o)
Compares this
Locator with the specified object
for equality. |
static String |
getBouquetName(Locator locator) |
static InetAddress |
getLocalAddress(Locator locator)
Reports the local IP address assigned to the given service
component.
|
static String |
getMediaFile(Locator locator) |
static String |
getMediaFile(String locatorStr) |
static String |
getNetworkName(Locator locator) |
static String |
getProgramEventName(Locator locator) |
static String |
getServiceComponentName(Locator locator) |
static String |
getServiceName(Locator locator) |
static String |
getTransportStreamID(Locator locator) |
int |
hashCode()
Generates a hash code value for this
Locator. |
boolean |
hasMultipleTransformations()
Indicates whether this
Locator has a mapping
to multiple networks. |
static boolean |
isAlternate(Locator locator) |
static boolean |
isBouquet(Locator locator) |
static boolean |
isNetwork(Locator locator) |
static boolean |
isProgramEvent(Locator locator) |
static boolean |
isProgramEventDescription(Locator locator) |
static boolean |
isSameProtocol(Locator locator1,
Locator locator2) |
static boolean |
isSelectable(Locator locator) |
static boolean |
isService(Locator locator) |
static boolean |
isServiceComponent(Locator locator) |
static boolean |
isServiceDescription(Locator locator) |
static boolean |
isSIElement(Locator locator)
Indicates whether an locator can possible point to an SI Element,
but does not indicate whether the corresponding si element exists.
|
static boolean |
isTDService(Locator locator) |
static boolean |
isTIService(Locator locator) |
static boolean |
isTransportStream(Locator locator) |
static void |
setMediaFile(String locatorStr,
String urlStr) |
static void |
setTransforms(Locator alias,
Vector list)
Setup the locator transform tables for a locator.
|
String |
toExternalForm()
Creates a string-based representation of this Locator.
|
String |
toString()
Returns the string used to create this locator.
|
static Locator[] |
transformLocator(Locator source)
Perform a transform on this locator.
|
static Locator |
transformToAlternate(Locator locator) |
static Locator |
transformToProgramEvent(Locator locator) |
static Locator |
transformToProgramEventDescription(Locator locator) |
static Locator |
transformToService(Locator locator) |
static Locator |
transformToServiceDescription(Locator locator) |
static Locator |
transformToTransportStream(Locator locator) |
static boolean |
validLocator(Locator locator)
Check for validity of a locator.
|
public static final String ServiceProtocol
public static final String ServiceComponentProtocol
public static final String ServiceDescriptionProtocol
public static final String ProgramEventProtocol
public static final String ProgramEventDescriptionProtocol
public static final String TransportStreamProtocol
public static final String NetworkProtocol
public static final String BouquetProtocol
public static final String CarouselProtocol
public static final String AlternateProtocol
public static final String TransportProtocol
public LocatorImpl(String locatorStr)
public String toExternalForm()
The result of this method may be used as an input to the constructor for the JMF MediaLocator.
toExternalForm in interface LocatorMediaLocator.MediaLocator(String)public String toString()
LocatortoString in interface LocatortoString in class ObjectLocatorFactory.createLocator(java.lang.String)public boolean hasMultipleTransformations()
Locator has a mapping
to multiple networks.hasMultipleTransformations in interface LocatorLocator, false otherwise.public boolean equals(Object o)
Locator with the specified object
for equality. The result is true if and only if
the specified object is also a Locator and has an external
form equivalent to the external form of this Locator.
Two external forms are equivalent (and thus refer to the same
resource) if (a) they are identical, i.e. via string comparison,
or (b) they both can be transformed to canonical forms that
are identical. The nature of canonicalized external forms is
entirely implementation dependent.equals in interface Locatorequals in class Objecto - The object to compare this Locator against.true if the specified object is equal to this
Locator.String.equals(Object)public int hashCode()
Locator.
Two Locator instances for which Locator.equals()
is true will have identical hash code values.hashCode in interface LocatorhashCode in class ObjectLocator.equals(Object)public static Locator[] transformLocator(Locator source)
public static void setTransforms(Locator alias, Vector list)
public static boolean equals(Locator locator1, Locator locator2)
locator1 - one of two locators to test for equalitylocator2 - the other of two locators to test for equalitypublic static boolean validLocator(Locator locator)
the - locator on which validity is to be checked.public static boolean isService(Locator locator)
public static boolean isTIService(Locator locator)
public static boolean isTDService(Locator locator)
public static boolean isServiceComponent(Locator locator)
public static boolean isServiceDescription(Locator locator)
public static boolean isProgramEvent(Locator locator)
public static boolean isProgramEventDescription(Locator locator)
public static boolean isTransportStream(Locator locator)
public static boolean isNetwork(Locator locator)
public static boolean isBouquet(Locator locator)
public static boolean isAlternate(Locator locator)
public static boolean isSelectable(Locator locator)
public static boolean isSIElement(Locator locator)
public static Locator transformToProgramEventDescription(Locator locator)
public static Locator createProgramEventLocator(String serviceName, String programName)
public static InetAddress getLocalAddress(Locator locator)
locator - The service component for which the local IP
address mapping is required.InvalidLocatorException - If the given locator does not
refer to a valid source of IP data, or refers to a source of IP
data whose reception is not supported on this system.IOException - If a local IP address is not available to
be assigned to the source of IP data.Copyright © 2012 code4tv.com. All Rights Reserved.