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() |
void |
deleteAllFiles()
delete all the files created by this channel group,
only to be called on deletion of a channel group
|
boolean |
equals(Object obj) |
Channel[] |
getAvailableChannels()
Gets the list of the channels that are available by this data service.
|
Iterator<Channel> |
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.
|
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<Channel> 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)
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 void deleteAllFiles()
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)