|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutil.tvdataservice.AbstractOldTvDataServiceBridge
public abstract class AbstractOldTvDataServiceBridge
Works as a bridge between the old and the new TvDataService style.
If you have used the AbstractTvDataService class you can extend from this class and your TvDataService will work again.
| Constructor Summary | |
|---|---|
AbstractOldTvDataServiceBridge()
Deprecated. Creates a new instance of AbstractTvDataService. |
|
| Method Summary | |
|---|---|
Channel[] |
checkForAvailableChannels()
Deprecated. |
void |
connect()
Deprecated. Called by the host-application before starting to download. |
void |
disconnect()
Deprecated. After the download is done, this method is called. |
MutableChannelDayProgram |
downloadDayProgram(Date date,
Channel channel)
Deprecated. Returns the whole program of the channel on the specified date. |
protected abstract void |
downloadFileFor(Date date,
Channel channel,
File targetFile)
Deprecated. Downloads the file containing the data for the specified dat and channel. |
Version |
getAPIVersion()
Deprecated. Gets the Version of the implemented API Since TV-Browser 0.9.7 getAPIVersion must return 1.0 |
Channel[] |
getAvailableChannels()
Deprecated. Gets the list of the channels that are available by this data service. |
protected abstract String |
getDataDirectory()
Deprecated. Gets the name of the directory where to download the data service specific files. |
protected abstract Channel[] |
getDefaultAvailableChannels()
Deprecated. Gets the default list of the channels that are available by this data service. |
protected abstract String |
getFileNameFor(Date date,
Channel channel)
Deprecated. Gets the name of the file that contains the data of the specified date. |
protected Properties |
getSettings()
Deprecated. Gets the settings. |
SettingsPanel |
getSettingsPanel()
Deprecated. |
boolean |
hasSettingsPanel()
Deprecated. |
void |
loadSettings(Properties settings)
Deprecated. Called by the host-application during start-up. |
protected abstract void |
parseFile(File file,
Date date,
Channel channel,
ProgramDispatcher programDispatcher)
Deprecated. Parses the specified file. |
Properties |
storeSettings()
Deprecated. Called by the host-application during shut-down. |
boolean |
supportsDynamicChannelList()
Deprecated. |
void |
updateTvData(TvDataUpdateManager dataBase,
Channel[] channelArr,
Date startDate,
int dateCount,
ProgressMonitor monitor)
Deprecated. Updates the TV listings provided by this data service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface tvdataservice.TvDataService |
|---|
checkForAvailableChannels, getInfo, setWorkingDirectory, supportsAutoUpdate |
| Constructor Detail |
|---|
public AbstractOldTvDataServiceBridge()
| Method Detail |
|---|
public Version getAPIVersion()
TvDataService
getAPIVersion in interface TvDataService
public void updateTvData(TvDataUpdateManager dataBase,
Channel[] channelArr,
Date startDate,
int dateCount,
ProgressMonitor monitor)
throws TvBrowserException
updateTvData in interface TvDataServiceTvBrowserExceptionprotected abstract Channel[] getDefaultAvailableChannels()
public Channel[] checkForAvailableChannels()
throws TvBrowserException
TvBrowserExceptionpublic boolean supportsDynamicChannelList()
supportsDynamicChannelList in interface TvDataServiceprotected abstract String getDataDirectory()
protected abstract String getFileNameFor(Date date,
Channel channel)
protected abstract void downloadFileFor(Date date,
Channel channel,
File targetFile)
throws TvBrowserException
date - The date to load the data for.channel - The channel to load the data for.targetFile - The file where to store the file.
TvBrowserException
protected abstract void parseFile(File file,
Date date,
Channel channel,
ProgramDispatcher programDispatcher)
throws TvBrowserException
file - The file to parse.date - The date to load the data forchannel - The channel to load the data forprogramDispatcher - The ProgramDispatcher where to store the found
programs.
TvBrowserExceptionprotected Properties getSettings()
public void connect()
throws TvBrowserException
TvBrowserException
public void disconnect()
throws TvBrowserException
TvBrowserException
public MutableChannelDayProgram downloadDayProgram(Date date,
Channel channel)
throws TvBrowserException
TvBrowserExceptionpublic SettingsPanel getSettingsPanel()
getSettingsPanel in interface TvDataServicepublic boolean hasSettingsPanel()
hasSettingsPanel in interface TvDataServicepublic void loadSettings(Properties settings)
loadSettings in interface TvDataServicepublic Properties storeSettings()
storeSettings in interface TvDataServicepublic Channel[] getAvailableChannels()
getAvailableChannels in interface TvDataService
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||