public class Channel extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CATEGORY_CINEMA |
static int |
CATEGORY_DIGITAL |
static int |
CATEGORY_EVENTS |
static int |
CATEGORY_NONE |
static int |
CATEGORY_PAY_TV |
static int |
CATEGORY_RADIO |
static int |
CATEGORY_SPECIAL_MUSIC |
static int |
CATEGORY_SPECIAL_NEWS |
static int |
CATEGORY_SPECIAL_OTHER |
static int |
CATEGORY_SPECIAL_SPORT |
static int |
CATEGORY_TV |
Constructor and Description |
---|
Channel(String id) |
Channel(String id,
String country) |
Channel(TvDataService dataService,
String name)
Deprecated.
|
Channel(TvDataService dataService,
String name,
String id)
Deprecated.
|
Channel(TvDataService dataService,
String name,
String id,
TimeZone timeZone)
Deprecated.
|
Channel(TvDataService dataService,
String name,
String id,
TimeZone timeZone,
String country)
Deprecated.
|
Channel(TvDataService dataService,
String name,
String id,
TimeZone timeZone,
String country,
String copyrightNotice) |
Channel(TvDataService dataService,
String name,
String id,
TimeZone timeZone,
String country,
String copyrightNotice,
String webpage) |
Channel(TvDataService dataService,
String name,
String id,
TimeZone timeZone,
String country,
String copyrightNotice,
String webpage,
ChannelGroup group) |
Channel(TvDataService dataService,
String name,
String id,
TimeZone timeZone,
String country,
String copyrightNotice,
String webpage,
ChannelGroup group,
Icon icon) |
Channel(TvDataService dataService,
String name,
String id,
TimeZone timeZone,
String country,
String copyrightNotice,
String webpage,
ChannelGroup group,
Icon icon,
int categories) |
Channel(TvDataService dataService,
String name,
TimeZone timeZone)
Deprecated.
|
Channel(TvDataService dataService,
String name,
TimeZone timeZone,
String country)
Deprecated.
|
Channel(TvDataService dataService,
String name,
TimeZone timeZone,
String country,
String copyrightNotice) |
Modifier and Type | Method and Description |
---|---|
void |
copySettingsToChannel(Channel to)
Deprecated.
not needed since we use the ChannelUserSettings class for storing channel user settings
|
boolean |
equals(Object obj) |
int |
getCategories() |
static Channel |
getChannel(String dataServiceId,
String groupId,
String country,
String channelId) |
String |
getCopyrightNotice() |
String |
getCountry() |
TvDataService |
getDataService()
Deprecated.
|
TvDataServiceProxy |
getDataServiceProxy() |
int |
getDayLightSavingTimeCorrection() |
Icon |
getDefaultIcon()
Return the Default-Icon
|
String |
getDefaultName()
Get the default ChannelName
|
String |
getDefaultWebPage()
Get the Default WebPage
|
int |
getEndTimeLimit()
Gets the end time limit in minutes of day.
|
ChannelGroup |
getGroup() |
Icon |
getIcon() |
String |
getIconFileName()
Deprecated.
use getUserIconFileName()
|
String |
getId() |
String |
getName() |
int |
getStartTimeLimit()
Gets the start time limit in minutes of day.
|
TimeZone |
getTimeZone() |
String |
getUserChannelName()
Get the ChannelName used by the User
|
String |
getUserIconFileName() |
String |
getUserWebPage()
Get the WebPage used by the User
|
String |
getWebpage() |
boolean |
hasIcon() |
boolean |
isTimeLimited()
Gets if this channel is limited in start and end time.
|
boolean |
isUsingUserIcon()
Is using the User-Icon if availabe?
|
static Channel |
readData(ObjectInputStream in,
boolean allowNull) |
static Channel |
readData(RandomAccessFile in,
boolean allowNull)
Method for OnDemandDayProgramFile file format version 2.
|
void |
setChannelCopyrightNotice(String copyrightNotice)
Sets the copyright notice of this channel.
|
void |
setChannelName(String name)
Sets the name of this channel.
|
void |
setChannelWebpage(String webpage)
Sets the webpage of this channel.
|
void |
setDayLightSavingTimeCorrection(int correction) |
void |
setDefaultIcon(Icon icon)
Sets the Default-Icon.
|
void |
setEndTimeLimit(int endTimeLimit)
Sets the end time limit to the new value.
|
void |
setIcon(Icon icon) |
void |
setIconFileName(String filename)
Deprecated.
user setUserIconFileName
|
void |
setStartTimeLimit(int startTimeLimit)
Sets the start time limit to the new value.
|
void |
setUserChannelName(String name)
Set the ChannelName used by the User
|
void |
setUserIconFileName(String filename) |
void |
setUserWebPage(String url)
Seth the WebPage used by the User
|
String |
toString() |
void |
useUserIcon(boolean use)
Use the User-Icon if available?
|
void |
writeData(ObjectOutputStream out)
Serialized this object.
|
void |
writeToDataFile(RandomAccessFile out)
Method for OnDemandDayProgramFile file format version 2.
|
public static final int CATEGORY_NONE
public static final int CATEGORY_TV
public static final int CATEGORY_RADIO
public static final int CATEGORY_CINEMA
public static final int CATEGORY_EVENTS
public static final int CATEGORY_DIGITAL
public static final int CATEGORY_SPECIAL_MUSIC
public static final int CATEGORY_SPECIAL_SPORT
public static final int CATEGORY_SPECIAL_NEWS
public static final int CATEGORY_SPECIAL_OTHER
public static final int CATEGORY_PAY_TV
public Channel(TvDataService dataService, String name, String id, TimeZone timeZone, String country, String copyrightNotice, String webpage, ChannelGroup group, Icon icon, int categories)
public Channel(TvDataService dataService, String name, String id, TimeZone timeZone, String country, String copyrightNotice, String webpage, ChannelGroup group, Icon icon)
public Channel(TvDataService dataService, String name, String id, TimeZone timeZone, String country, String copyrightNotice, String webpage, ChannelGroup group)
public Channel(TvDataService dataService, String name, String id, TimeZone timeZone, String country, String copyrightNotice, String webpage)
public Channel(TvDataService dataService, String name, String id, TimeZone timeZone, String country, String copyrightNotice)
public Channel(TvDataService dataService, String name, TimeZone timeZone, String country, String copyrightNotice)
public Channel(TvDataService dataService, String name, String id, TimeZone timeZone, String country)
public Channel(TvDataService dataService, String name, TimeZone timeZone, String country)
public Channel(TvDataService dataService, String name, String id, TimeZone timeZone)
public Channel(TvDataService dataService, String name, TimeZone timeZone)
public Channel(TvDataService dataService, String name, String id)
public Channel(TvDataService dataService, String name)
public Channel(String id)
public static Channel readData(ObjectInputStream in, boolean allowNull) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public static Channel readData(RandomAccessFile in, boolean allowNull) throws IOException, ClassNotFoundException
in
- The file too read the Data from.allowNull
- IOException
ClassNotFoundException
public void writeToDataFile(RandomAccessFile out) throws IOException
out
- The file to write the Data in.IOException
public void writeData(ObjectOutputStream out) throws IOException
IOException
public String getCopyrightNotice()
public String getWebpage()
public ChannelGroup getGroup()
public int getCategories()
public static Channel getChannel(String dataServiceId, String groupId, String country, String channelId)
dataServiceId
- The id of the data service of the channel to get.groupId
- The group id of the channel to get.country
- The country of the channel to get.channelId
- The id of the channel to get.null
if no channel with the ids was found.public TimeZone getTimeZone()
public String getCountry()
public void setDayLightSavingTimeCorrection(int correction)
public int getDayLightSavingTimeCorrection()
public TvDataService getDataService()
public TvDataServiceProxy getDataServiceProxy()
public void setDefaultIcon(Icon icon)
icon
- Default-Iconpublic void setIcon(Icon icon)
icon
- The new icon or null to remove the current iconpublic String getName()
public String getId()
public void copySettingsToChannel(Channel to)
to
- to this Channelpublic Icon getIcon()
public boolean hasIcon()
public String getIconFileName()
public void setIconFileName(String filename)
filename
- Filename for Iconpublic void setUserIconFileName(String filename)
public String getUserIconFileName()
public void useUserIcon(boolean use)
use
- true for using User-Iconpublic boolean isUsingUserIcon()
public Icon getDefaultIcon()
public void setUserChannelName(String name)
name
- new ChannelNamepublic String getUserChannelName()
public String getDefaultName()
public void setUserWebPage(String url)
url
- WebPagepublic String getUserWebPage()
public String getDefaultWebPage()
public boolean isTimeLimited()
True
if this channel is time limited.public int getStartTimeLimit()
public void setStartTimeLimit(int startTimeLimit)
startTimeLimit
- The new value for start time
limit in minutes of day.public int getEndTimeLimit()
public void setEndTimeLimit(int endTimeLimit)
endTimeLimit
- The new value for end time
limit in minutes of day.public void setChannelName(String name)
name
- The new name for the channel.public void setChannelCopyrightNotice(String copyrightNotice)
copyrightNotice
- The new copyright notice for the channel.public void setChannelWebpage(String webpage)
webpage
- The new webpage for the channel.TV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)