public class TvDataBase extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public static TvDataBase getInstance()
protected void updateTvDataBase()
public void checkTvDataInventory()
public void handleTvBrowserStartFinished()
public void close() throws IOException
IOException
public void addTvDataListener(TvDataBaseListener listener)
public void removeTvDataListener(TvDataBaseListener listener)
public ChannelDayProgram getDayProgram(Date date, Channel channel)
public void reCalculateTvData(int days, ProgressMonitor progressMonitor)
days
- The number of days to recalculateprogressMonitor
- display status of the recalculationpublic void setDayProgram(MutableChannelDayProgram prog)
public void deleteExpiredFiles(int lifespan, boolean informPlugins)
lifespan
- The number of days to delete from the pastinformPlugins
- If the plugins should be informed about the deleting.public boolean dataAvailable(Date date)
date
- The date to check.TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)