Constructor and Description |
---|
SimpleConfig()
Create Config
|
SimpleConfig(ObjectInputStream stream)
Load Config
|
SimpleConfig(SimpleConfig config)
Clone Config
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
ExternalChannelIf[] |
getAllExternalChannels(SimpleConnectionIf con) |
Channel |
getChannelForExternalId(int channel)
Returns TVB Channel for external Channel ID
|
HashMap<Channel,SimpleChannel> |
getChannelMapping()
Get Mapping of TVB-Channels - external Channels
|
ExternalChannelIf |
getExternalChannel(Channel channel)
Get external channel for TVB Channel
|
ExternalChannelIf[] |
getExternalChannels() |
String |
getId() |
void |
readData(ObjectInputStream stream)
Read Settings
|
void |
setExternalChannel(Channel channel,
ExternalChannelIf external)
Set Mapping for Channel
|
void |
setExternalChannels(SimpleChannel[] channels)
Set List of external Channels.
|
void |
writeData(ObjectOutputStream stream)
Store Settings
|
public SimpleConfig()
public SimpleConfig(SimpleConfig config)
config
- config to clonepublic SimpleConfig(ObjectInputStream stream) throws IOException, ClassNotFoundException
stream
- Load Config from this StreamIOException
ClassNotFoundException
public HashMap<Channel,SimpleChannel> getChannelMapping()
public ExternalChannelIf getExternalChannel(Channel channel)
getExternalChannel
in interface ConfigIf
channel
- Get external channel for this TVB Channelpublic void setExternalChannel(Channel channel, ExternalChannelIf external)
setExternalChannel
in interface ConfigIf
channel
- TVB Channelexternal
- external Channelpublic void setExternalChannels(SimpleChannel[] channels)
channels
- List of Channelspublic ExternalChannelIf[] getExternalChannels()
getExternalChannels
in interface ConfigIf
public ExternalChannelIf[] getAllExternalChannels(SimpleConnectionIf con)
public void readData(ObjectInputStream stream) throws IOException, ClassNotFoundException
stream
- IOException
ClassNotFoundException
public void writeData(ObjectOutputStream stream) throws IOException
stream
- IOException
public Channel getChannelForExternalId(int channel)
channel
- external Channel IDpublic String getId()
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)