public class ChannelItem extends Object
Constructor and Description |
---|
ChannelItem(Channel channel)
Creates an instance of this class.
|
ChannelItem(ObjectInputStream in,
int version)
Load the channel item from an stream.
|
Modifier and Type | Method and Description |
---|---|
Channel |
getChannel()
Gets the channel of this channel item.
|
boolean |
isAvailableOrNullChannel()
Gets if this channel ist available or is a null channel
|
boolean |
isNullChannel()
Gets if this channel is a null channel.
|
boolean |
isValid()
Gets if this channel is valid (could be found).
|
void |
saveItem(ObjectOutputStream out)
Saves this channel item in an output stream.
|
public ChannelItem(Channel channel)
channel
- The channel to keep in this ChannelItem.public ChannelItem(ObjectInputStream in, int version) throws IOException, ClassNotFoundException
in
- The stream to read the channel values from.version
- The version of the file.IOException
ClassNotFoundException
public boolean isValid()
True
if this channel is valid,
false
otherwise.public boolean isAvailableOrNullChannel()
True
if this channel is available or a null
channel, false
otherwise.public Channel getChannel()
null
if the channel is not valid (could not be found).public void saveItem(ObjectOutputStream out) throws IOException
out
- The stream to save this item in.IOException
public boolean isNullChannel()
True
if the channel is a null channel,
false
otherwise.TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)