|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttvbrowserdataservice.ChannelGroup
public class ChannelGroup
The ChannelGroup implementation of the TvBrowserDataService
| Field Summary | |
|---|---|
static Localizer |
mLocalizer
The localizer for this class. |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Localizer mLocalizer
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 ChannelGrouppublic String getName()
getName in interface ChannelGrouppublic String getProviderName()
getProviderName in interface ChannelGrouppublic String toString()
toString in class Object
protected void chooseMirrors()
throws TvBrowserException
TvBrowserExceptionpublic 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.
TvBrowserExceptionpublic Channel[] getAvailableChannels()
public String getId()
getId in interface ChannelGrouppublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void deleteAllFiles()
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||