TV-Browser 2.7.5 API

tvbrowserdataservice.file
Class AbstractFile

java.lang.Object
  extended by tvbrowserdataservice.file.AbstractFile
Direct Known Subclasses:
DayProgramFile, SummaryFile

public abstract class AbstractFile
extends Object

Holds the common code of the file classes.

Author:
Til Schneider, www.murfman.de

Constructor Summary
AbstractFile()
           
 
Method Summary
 void readFromFile(File file)
           
abstract  void readFromStream(InputStream stream, DownloadJob job)
           
 void writeToFile(File file)
           
abstract  void writeToStream(OutputStream stream, File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFile

public AbstractFile()
Method Detail

readFromFile

public void readFromFile(File file)
                  throws IOException,
                         FileFormatException
Throws:
IOException
FileFormatException

readFromStream

public abstract void readFromStream(InputStream stream,
                                    DownloadJob job)
                             throws IOException,
                                    FileFormatException
Throws:
IOException
FileFormatException

writeToFile

public void writeToFile(File file)
                 throws IOException,
                        FileFormatException
Throws:
IOException
FileFormatException

writeToStream

public abstract void writeToStream(OutputStream stream,
                                   File file)
                            throws IOException,
                                   FileFormatException
Throws:
IOException
FileFormatException

TV-Browser 2.7.5 API

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