|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tvbrowser.extras.common.ChannelItem
public class ChannelItem
A class that contains informations about a channel. Used to keep channel values even if channel is currently not available.
Constructor Summary | |
---|---|
ChannelItem(Channel channel)
Creates an instance of this class. |
|
ChannelItem(java.io.ObjectInputStream in,
int version)
Load the channel item from an stream. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
Method Detail |
---|
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.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |