TV-Browser 2.7.5 API

tvbrowser.core.data
Class OnDemandDayProgramFile

java.lang.Object
  extended by tvbrowser.core.data.OnDemandDayProgramFile

public class OnDemandDayProgramFile
extends Object

An encapsulated access on a file containing TV data that allows an access of single data fields on demand.

Author:
Til Schneider, www.murfman.de

Constructor Summary
OnDemandDayProgramFile(File file, Date date, Channel channel)
           
OnDemandDayProgramFile(File file, MutableChannelDayProgram dayProgram)
           
 
Method Summary
 void calculateTimeLimits()
          Calcualtes the time limits of this file.
 MutableChannelDayProgram getDayProgram()
           
 boolean isTimeLimitationData()
          Gets if this file data file is loaden for data base.
 void loadDayProgram(boolean update)
          Loads the day program for on demand access.
(package private)  Object loadFieldValue(long position, ProgramFieldType type)
           
 void saveDayProgram()
          Saves the day program to the on demand data file.
 void setValid(boolean valid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnDemandDayProgramFile

public OnDemandDayProgramFile(File file,
                              Date date,
                              Channel channel)

OnDemandDayProgramFile

public OnDemandDayProgramFile(File file,
                              MutableChannelDayProgram dayProgram)
Method Detail

setValid

public void setValid(boolean valid)

getDayProgram

public MutableChannelDayProgram getDayProgram()

loadDayProgram

public void loadDayProgram(boolean update)
                    throws IOException,
                           ClassNotFoundException
Loads the day program for on demand access.

Parameters:
update - True if this is called from TV data update, false otherwise.
Throws:
IOException
ClassNotFoundException

saveDayProgram

public void saveDayProgram()
                    throws IOException
Saves the day program to the on demand data file.

Throws:
IOException

loadFieldValue

Object loadFieldValue(long position,
                      ProgramFieldType type)
                throws IOException,
                       ClassNotFoundException
Throws:
IOException
ClassNotFoundException

isTimeLimitationData

public boolean isTimeLimitationData()
Gets if this file data file is loaden for data base.

Returns:
True if this data is used in program table, false if this data is used for data updae.
Since:
2.2.4/2.6

calculateTimeLimits

public void calculateTimeLimits()
Calcualtes the time limits of this file.

Since:
2.2.4/2.6

TV-Browser 2.7.5 API

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