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() |
boolean |
isDayProgramAvailable(Date date,
Channel channel) |
void |
reCalculateTvData(int days)
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 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)
days
- The number of days to recalculatepublic 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.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)