TV-Browser 2.7.5 API

primarydatamanager.mirrorupdater.data
Class FileDataSource

java.lang.Object
  extended by primarydatamanager.mirrorupdater.data.FileDataSource
All Implemented Interfaces:
DataSource

public class FileDataSource
extends Object
implements DataSource

Author:
Til Schneider, www.murfman.de

Constructor Summary
FileDataSource(File dir)
           
 
Method Summary
 void close()
           
 boolean fileExists(String fileName)
           
 byte[] loadFile(String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDataSource

public FileDataSource(File dir)
Parameters:
dir -
Method Detail

fileExists

public boolean fileExists(String fileName)
                   throws UpdateException
Specified by:
fileExists in interface DataSource
Throws:
UpdateException

loadFile

public byte[] loadFile(String fileName)
                throws UpdateException
Specified by:
loadFile in interface DataSource
Throws:
UpdateException

close

public void close()
           throws UpdateException
Specified by:
close in interface DataSource
Throws:
UpdateException

TV-Browser 2.7.5 API

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