public class ChannelItem
extends java.lang.Object
Constructor and Description |
---|
ChannelItem(Channel channel)
Creates an instance of this class.
|
ChannelItem(java.io.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 |
reValidate()
Tries to load channel again.
|
void |
saveItem(java.io.ObjectOutputStream out)
Saves this channel item in an output stream.
|
public ChannelItem(Channel channel)
channel
- The channel to keep in this ChannelItem.public ChannelItem(java.io.ObjectInputStream in, int version) throws java.io.IOException, java.lang.ClassNotFoundException
in
- The stream to read the channel values from.version
- The version of the file.java.io.IOException
java.lang.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(java.io.ObjectOutputStream out) throws java.io.IOException
out
- The stream to save this item in.java.io.IOException
public boolean isNullChannel()
True
if the channel is a null channel,
false
otherwise.public void reValidate()
TV-Browser 3.4.3, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)