|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbbc.rd.tvanytime.util.DVBLocatorToolbox
public class DVBLocatorToolbox
DVBLocatorToolbox: A class (which should be treated as abstract) offering useful methods
on DVB Locators.
This version accepts DVB locator strings in the following forms which are all compliant with
the extended DVB Locator defined in ETSI TS 102 822-3-1 (V1.1.1):
"dvb://233a.1004.1084;6f2c@2001-12-08T02:50:00--PT00H10M45S"
"dvb://233a.1004.1084;6f2c@2001-12-08T02:50:00Z--PT00H10M45S"
"dvb://233a.1004.1084;6f2c@2001-12-08T02:50:00+01--PT00H10M45S"
"dvb://233a.1004.1084;6f2c@2001-12-08T02:50:00+01:00--PT00H10M45S"
It will also accept locators where the "--" symbols are replaced by "/" although this is not DVB compliant.
Method Summary | |
---|---|
static java.util.Date |
getDate(java.lang.String locator)
Get the date part of the locator. |
static Duration |
getDuration(java.lang.String locator)
Get the duration part of the locator. |
static java.lang.String |
getDVBTriplet(java.lang.String locator)
Get the DVB triplet part of the DVBLocator |
static java.lang.String |
getEventID(java.lang.String locator)
Get the event_id part of the DVBLocator |
static java.lang.String |
getTvaID(java.lang.String locator)
Get the TVA_id part of the DVBLocator |
static boolean |
isDVBLocator(java.lang.String locator)
Checks whether this is a DVBLocator |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getDVBTriplet(java.lang.String locator) throws TVAnytimeException
TVAnytimeException
- thrown when locator does not start with 'dvb://'public static java.lang.String getEventID(java.lang.String locator) throws TVAnytimeException
TVAnytimeException
- thrown when locator does not start with 'dvb://'public static java.lang.String getTvaID(java.lang.String locator) throws TVAnytimeException
TVAnytimeException
- thrown when locator does not start with 'dvb://'public static java.util.Date getDate(java.lang.String locator) throws TVAnytimeException
This method currently accepts "--" or "/" as separators to delineate the date/time and duration. However, the use of "/" is not DVB compliant and is deprecated.
TVAnytimeException
- if the locator is invalid.public static Duration getDuration(java.lang.String locator) throws TVAnytimeException
The method currently accepts "--" or "/" as separators to delineate the date/time and duration. However, the use of "/" is not DVB compliant and is deprecated.
TVAnytimeException
- if the locator is invalid.public static boolean isDVBLocator(java.lang.String locator)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |