|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttvbrowser.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(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 |
saveItem(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(ObjectInputStream in,
int version)
throws IOException,
ClassNotFoundException
in - The stream to read the channel values from.version - The version of the file.
IOException
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(ObjectOutputStream out)
throws IOException
out - The stream to save this item in.
IOExceptionpublic boolean isNullChannel()
True if the channel is a null channel,
false otherwise.
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||