TV-Browser 2.7.5 API

tvbrowser.core
Class TvDataBase

java.lang.Object
  extended by tvbrowser.core.TvDataBase

public class TvDataBase
extends Object

Author:
Til Schneider, www.murfman.de

Method Summary
 void addTvDataListener(TvDataBaseListener listener)
           
 void checkTvDataInventory()
           
 void close()
           
 boolean dataAvailable(Date date)
          Returns true, if TV data is available on disk for the given date.
 void deleteExpiredFiles(int lifespan, boolean informPlugins)
          Deletes expired tvdata files older then lifespan days.
static String getChannelKey(Channel channel)
           
 ChannelDayProgram getDayProgram(Date date, Channel channel)
           
static String getDayProgramKey(Date date, Channel channel)
           
static TvDataBase getInstance()
           
 void handleTvBrowserStartFinished()
          Handles the pending plugin information if it is to do after TV-Browser start is finished.
 boolean isDayProgramAvailable(Date date, Channel channel)
           
 void reCalculateTvData(int days, ProgressMonitor progressMonitor)
          Checks all TV-Data for missing length.
 void removeTvDataListener(TvDataBaseListener listener)
           
 void setDayProgram(MutableChannelDayProgram prog)
           
protected  void updateTvDataBase()
          Updates the TV data base.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TvDataBase getInstance()

updateTvDataBase

protected void updateTvDataBase()
Updates the TV data base.

Since:
2.2.2/2.5.1

checkTvDataInventory

public void checkTvDataInventory()

handleTvBrowserStartFinished

public void handleTvBrowserStartFinished()
Handles the pending plugin information if it is to do after TV-Browser start is finished.

Since:
2.7.2

close

public void close()
           throws IOException
Throws:
IOException

addTvDataListener

public void addTvDataListener(TvDataBaseListener listener)

removeTvDataListener

public void removeTvDataListener(TvDataBaseListener listener)

getDayProgram

public ChannelDayProgram getDayProgram(Date date,
                                       Channel channel)

reCalculateTvData

public void reCalculateTvData(int days,
                              ProgressMonitor progressMonitor)
Checks all TV-Data for missing length.

Parameters:
days - The number of days to recalculate
progressMonitor - display status of the recalculation

setDayProgram

public void setDayProgram(MutableChannelDayProgram prog)

getDayProgramKey

public static String getDayProgramKey(Date date,
                                      Channel channel)

getChannelKey

public static String getChannelKey(Channel channel)

isDayProgramAvailable

public boolean isDayProgramAvailable(Date date,
                                     Channel channel)

deleteExpiredFiles

public void deleteExpiredFiles(int lifespan,
                               boolean informPlugins)
Deletes expired tvdata files older then lifespan days.

Parameters:
lifespan - The number of days to delete from the past
informPlugins - If the plugins should be informed about the deleting.

dataAvailable

public boolean dataAvailable(Date date)
Returns true, if TV data is available on disk for the given date.

Parameters:
date - The date to check.
Returns:
if the data is available.

TV-Browser 2.7.5 API

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