public class SimpleChannel extends Object implements ExternalChannelIf
Constructor and Description |
---|
SimpleChannel(int number,
String name)
Create the Channel
|
SimpleChannel(ObjectInputStream stream)
Create the Channel from a Stream
|
Modifier and Type | Method and Description |
---|---|
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
|
public SimpleChannel(int number, String name)
number
- Number of the Channelname
- Name of the Channelpublic SimpleChannel(ObjectInputStream stream) throws IOException, ClassNotFoundException
stream
- load Settings from this StreamIOException
ClassNotFoundException
public String getName()
getName
in interface ExternalChannelIf
public void setName(String name)
name
- Set the Name of the Channelpublic int getNumber()
public void setNumber(int number)
number
- Set the Number of the Channelpublic void readData(ObjectInputStream stream) throws IOException, ClassNotFoundException
stream
- IOException
ClassNotFoundException
public void writeData(ObjectOutputStream stream) throws IOException
stream
- IOException
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)