public class ChannelGroup extends Object implements ChannelGroup
Modifier and Type | Field and Description |
---|---|
static Localizer |
mLocalizer
The localizer for this class.
|
Constructor and Description |
---|
ChannelGroup(TvBrowserDataService dataservice,
String id,
String[] mirrorUrls,
Properties settings)
Creates a new ChannelGroup
|
ChannelGroup(TvBrowserDataService dataservice,
String id,
String name,
String description,
String provider,
String[] mirrorUrls,
Properties settings)
Creates a new ChannelGroup
|
Modifier and Type | Method and Description |
---|---|
void |
addChannel(Channel ch)
Add a channel to this group.
|
Channel[] |
checkForAvailableChannels(ProgressMonitor monitor)
Checks and returns the available channels of this group.
|
protected void |
chooseMirrors() |
protected static Mirror |
chooseUpToDateMirror(Mirror[] mirrorArr,
ProgressMonitor monitor,
String name,
String id) |
boolean |
equals(Object obj) |
Channel[] |
getAvailableChannels()
Gets the list of the channels that are available by this data service.
|
Iterator |
getChannels()
Get all channels.
|
String |
getDescription() |
String |
getId() |
Mirror |
getMirror()
Get the current mirror.
|
protected String[] |
getMirrorArr() |
String |
getName() |
String |
getProviderName() |
SummaryFile |
getSummary() |
int |
hashCode() |
boolean |
isGroupMember(Channel ch)
Checks if a channel is a member of this group.
|
static void |
resetBannedServers()
Reset the List of banned Servers
|
protected void |
setBaseMirror(String[] mirrorUrl) |
void |
setWorkingDirectory(File dataDir)
Sets the data directory.
|
String |
toString() |
public static final Localizer mLocalizer
public ChannelGroup(TvBrowserDataService dataservice, String id, String name, String description, String provider, String[] mirrorUrls, Properties settings)
dataservice
- The data service of the group.id
- The id of the group.name
- The name of the group.description
- The description for the group.provider
- The provider of the group.mirrorUrls
- The mirror urls of the group.settings
- The properties of the group.public ChannelGroup(TvBrowserDataService dataservice, String id, String[] mirrorUrls, Properties settings)
dataservice
- The data service of the group.id
- The id of the group.mirrorUrls
- The mirror urls of the group.settings
- The properties of the group.protected String[] getMirrorArr()
public boolean isGroupMember(Channel ch)
ch
- The channel to check.public void setWorkingDirectory(File dataDir)
dataDir
- The data directory.public void addChannel(Channel ch)
ch
- The channel to add.public Iterator getChannels()
public String getDescription()
getDescription
in interface ChannelGroup
public String getName()
getName
in interface ChannelGroup
public String getProviderName()
getProviderName
in interface ChannelGroup
protected void chooseMirrors() throws TvBrowserException
TvBrowserException
public SummaryFile getSummary()
public Mirror getMirror()
protected void setBaseMirror(String[] mirrorUrl)
protected static Mirror chooseUpToDateMirror(Mirror[] mirrorArr, ProgressMonitor monitor, String name, String id) throws TvBrowserException
TvBrowserException
public Channel[] checkForAvailableChannels(ProgressMonitor monitor) throws TvBrowserException
monitor
- The progress monitor that is to be used.TvBrowserException
public Channel[] getAvailableChannels()
public String getId()
getId
in interface ChannelGroup
public static void resetBannedServers()
TV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)