TV-Browser 2.7.5 API

captureplugin.drivers.simpledevice
Class SimpleChannel

java.lang.Object
  extended by captureplugin.drivers.simpledevice.SimpleChannel
All Implemented Interfaces:
ExternalChannelIf

public class SimpleChannel
extends Object
implements ExternalChannelIf

This Class represents an external channel

Author:
bodum

Constructor Summary
SimpleChannel(int number, String name)
          Create the Channel
SimpleChannel(ObjectInputStream stream)
          Create the Channel from a Stream
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
           
 int getNumber()
           
 int hashCode()
           
 void readData(ObjectInputStream stream)
          Read Settings
 void setName(String name)
           
 void setNumber(int number)
           
 String toString()
           
 void writeData(ObjectOutputStream stream)
          Store Settings
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleChannel

public SimpleChannel(int number,
                     String name)
Create the Channel

Parameters:
number - Number of the Channel
name - Name of the Channel

SimpleChannel

public SimpleChannel(ObjectInputStream stream)
              throws IOException,
                     ClassNotFoundException
Create the Channel from a Stream

Parameters:
stream - load Settings from this Stream
Throws:
IOException
ClassNotFoundException
Method Detail

getName

public String getName()
Specified by:
getName in interface ExternalChannelIf
Returns:
get the Name of the Channel

setName

public void setName(String name)
Parameters:
name - Set the Name of the Channel

getNumber

public int getNumber()
Returns:
get the Number of the Channel

setNumber

public void setNumber(int number)
Parameters:
number - Set the Number of the Channel

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

readData

public void readData(ObjectInputStream stream)
              throws IOException,
                     ClassNotFoundException
Read Settings

Parameters:
stream -
Throws:
IOException
ClassNotFoundException

writeData

public void writeData(ObjectOutputStream stream)
               throws IOException
Store Settings

Parameters:
stream -
Throws:
IOException

TV-Browser 2.7.5 API

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