TV-Browser 2.7.5 API

util.tvdataservice
Class AbstractOldTvDataServiceBridge

java.lang.Object
  extended by util.tvdataservice.AbstractOldTvDataServiceBridge
All Implemented Interfaces:
TvDataService

Deprecated. Use the new TvDataService style.

public abstract class AbstractOldTvDataServiceBridge
extends Object
implements TvDataService

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.

Author:
Til Schneider, www.murfman.de

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

AbstractOldTvDataServiceBridge

public AbstractOldTvDataServiceBridge()
Deprecated. 
Creates a new instance of AbstractTvDataService.

Method Detail

getAPIVersion

public Version getAPIVersion()
Deprecated. 
Description copied from interface: TvDataService
Gets the Version of the implemented API Since TV-Browser 0.9.7 getAPIVersion must return 1.0

Specified by:
getAPIVersion in interface TvDataService

updateTvData

public void updateTvData(TvDataUpdateManager dataBase,
                         Channel[] channelArr,
                         Date startDate,
                         int dateCount,
                         ProgressMonitor monitor)
                  throws TvBrowserException
Deprecated. 
Updates the TV listings provided by this data service.

Specified by:
updateTvData in interface TvDataService
Throws:
TvBrowserException

getDefaultAvailableChannels

protected abstract Channel[] getDefaultAvailableChannels()
Deprecated. 
Gets the default list of the channels that are available by this data service.


checkForAvailableChannels

public Channel[] checkForAvailableChannels()
                                    throws TvBrowserException
Deprecated. 
Throws:
TvBrowserException

supportsDynamicChannelList

public boolean supportsDynamicChannelList()
Deprecated. 
Specified by:
supportsDynamicChannelList in interface TvDataService

getDataDirectory

protected abstract String getDataDirectory()
Deprecated. 
Gets the name of the directory where to download the data service specific files.


getFileNameFor

protected abstract String getFileNameFor(Date date,
                                         Channel channel)
Deprecated. 
Gets the name of the file that contains the data of the specified date.


downloadFileFor

protected abstract void downloadFileFor(Date date,
                                        Channel channel,
                                        File targetFile)
                                 throws TvBrowserException
Deprecated. 
Downloads the file containing the data for the specified dat and channel.

Parameters:
date - The date to load the data for.
channel - The channel to load the data for.
targetFile - The file where to store the file.
Throws:
TvBrowserException

parseFile

protected abstract void parseFile(File file,
                                  Date date,
                                  Channel channel,
                                  ProgramDispatcher programDispatcher)
                           throws TvBrowserException
Deprecated. 
Parses the specified file.

Parameters:
file - The file to parse.
date - The date to load the data for
channel - The channel to load the data for
programDispatcher - The ProgramDispatcher where to store the found programs.
Throws:
TvBrowserException

getSettings

protected Properties getSettings()
Deprecated. 
Gets the settings.


connect

public void connect()
             throws TvBrowserException
Deprecated. 
Called by the host-application before starting to download.

Throws:
TvBrowserException

disconnect

public void disconnect()
                throws TvBrowserException
Deprecated. 
After the download is done, this method is called. Use this method for clean-up.

Throws:
TvBrowserException

downloadDayProgram

public MutableChannelDayProgram downloadDayProgram(Date date,
                                                   Channel channel)
                                            throws TvBrowserException
Deprecated. 
Returns the whole program of the channel on the specified date.

Throws:
TvBrowserException

getSettingsPanel

public SettingsPanel getSettingsPanel()
Deprecated. 
Specified by:
getSettingsPanel in interface TvDataService

hasSettingsPanel

public boolean hasSettingsPanel()
Deprecated. 
Specified by:
hasSettingsPanel in interface TvDataService

loadSettings

public void loadSettings(Properties settings)
Deprecated. 
Called by the host-application during start-up. Implements this method to load your dataservices settings from the file system.

Specified by:
loadSettings in interface TvDataService

storeSettings

public Properties storeSettings()
Deprecated. 
Called by the host-application during shut-down. Implements this method to store your dataservices settings to the file system.

Specified by:
storeSettings in interface TvDataService

getAvailableChannels

public Channel[] getAvailableChannels()
Deprecated. 
Gets the list of the channels that are available by this data service.

Specified by:
getAvailableChannels in interface TvDataService

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)