TV-Browser 2.7.5 API

tvbrowserdataservice.file
Class ProgramFrame

java.lang.Object
  extended by tvbrowserdataservice.file.ProgramFrame
All Implemented Interfaces:
Cloneable

public class ProgramFrame
extends Object
implements Cloneable

Author:
Til Schneider, www.murfman.de

Constructor Summary
ProgramFrame()
           
ProgramFrame(int id)
           
 
Method Summary
 void addProgramField(ProgramField field)
           
 Object clone()
           
 boolean equals(Object obj)
           
 int getId()
           
 ProgramField getProgramFieldAt(int index)
           
 int getProgramFieldCount()
           
 int getProgramFieldIndexForTypeId(int typeId)
           
 ProgramField getProgramFieldOfType(ProgramFieldType type)
           
 void readFromStream(InputStream stream)
          Reads the data from a stream
 void removeAllProgramFields()
           
 ProgramField removeProgramFieldAt(int index)
           
 ProgramField removeProgramFieldOfType(ProgramFieldType type)
           
 void setId(int id)
           
 void writeToStream(OutputStream stream)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgramFrame

public ProgramFrame(int id)

ProgramFrame

public ProgramFrame()
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

getId

public int getId()
Returns:
id

setId

public void setId(int id)
Parameters:
id -

getProgramFieldCount

public int getProgramFieldCount()

getProgramFieldAt

public ProgramField getProgramFieldAt(int index)

removeProgramFieldAt

public ProgramField removeProgramFieldAt(int index)

removeProgramFieldOfType

public ProgramField removeProgramFieldOfType(ProgramFieldType type)

removeAllProgramFields

public void removeAllProgramFields()

addProgramField

public void addProgramField(ProgramField field)

getProgramFieldIndexForTypeId

public int getProgramFieldIndexForTypeId(int typeId)

getProgramFieldOfType

public ProgramField getProgramFieldOfType(ProgramFieldType type)

readFromStream

public void readFromStream(InputStream stream)
                    throws IOException,
                           FileFormatException
Reads the data from a stream

Parameters:
stream - The stream to read from.
Throws:
IOException - Thrown if something goes wrong.
FileFormatException - Thrown if something goes wrong.

writeToStream

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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

TV-Browser 2.7.5 API

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