|
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
public class URLLocator
Locator based on a URL. This locator can be used as transport dependent as well as transport independent locators.
The following forms of locators MUST be used to create a locator:
for transport streams:
dtv://<original_network_id>.<transport_stream_id> or
dtv://<frequency>:<modulation>.<symbol_rate>
for services:
dtv://<original_network_id>.<transport_stream_id>.<service_id>
for service domains:
dtv://<original_network_id>.<transport_stream_id>.<service_id>[;<content_id>][.<event_id>]/<component_tag>
for program events:
dtv://<original_network_id>.<transport_stream_id>.<service_id>.<event_id>
for MPEG elementary streams:
dtv://<original_network_id>.<transport_stream_id>.<service_id>[;<content_id>][.<event_id>]/<component_tag>[;<channel_id>]{&<component_tag>[;<channel_id>]}
for files and directories:
URL of “file:”, “http:” and “https:”.
It should be noted that all broadcast files can be addressed as "file:" using the location on the local filesystem.
All ids in the URLs MUST be provided in hexadecimal form using only hexadecimal digits ('0'-'9','a'-'f','A'-'F'). Leading '0' is allowed in order to fill fixed length string.
Frequency values MUST be given as decimal numbers in kiloHertz (kHz).
Modulation MUST be “DQPSK”, “QPSK”, “16QAM” or “64QAM”. Lower case is allowed for all letters.
Symbol_rate MUST be “12” for 1/2, “23” for 2/3, “34” for 3/4, “56” for 5/6 or “78” for 7/8.
Constructor Summary | |
---|---|
URLLocator(String url)
Constructor for a URL based locator. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compares this Locator with the specified object for
equality. |
int |
hashCode()
Generates a hash code value for this Locator . |
boolean |
hasMultipleTransformations()
Indicates whether this Locator has a mapping to multiple transports. |
String |
toExternalForm()
Generates a canonical, string-based representation of this Locator . |
String |
toString()
Returns the string used to create this locator. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public URLLocator(String url) throws InvalidLocatorException
url
- the URL string
InvalidLocatorException
- if the locator
can not be created from the provided parameters.Method Detail |
---|
public boolean hasMultipleTransformations()
hasMultipleTransformations
in interface Locator
Locator.hasMultipleTransformations()
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 MediaLocator
s and
URL
s.
toExternalForm
in interface Locator
Locator.toExternalForm()
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 identical to the external form of this
Locator
.
equals
in interface Locator
equals
in class Object
o
- The object against which to compare this Locator
.
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 Locator
hashCode
in class Object
Locator
.equals(Object)
public String toString()
toString
in interface Locator
toString
in class Object
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |