public class ChannelList extends Object
Constructor and Description |
---|
ChannelList(ChannelGroup group) |
ChannelList(String groupName) |
Modifier and Type | Method and Description |
---|---|
void |
addChannel(Channel channel) |
void |
addChannel(Channel channel,
String iconUrl) |
Channel[] |
createChannelArray() |
Channel |
getChannelAt(int index) |
int |
getChannelCount() |
void |
readFromFile(File file,
TvDataService dataService) |
void |
readFromStream(InputStream stream,
TvDataService dataService) |
void |
readFromStream(InputStream stream,
TvDataService dataService,
boolean compressed) |
void |
writeToFile(File file) |
void |
writeToStream(OutputStream stream) |
public static final String FILE_NAME
public ChannelList(String groupName)
public ChannelList(ChannelGroup group)
public void addChannel(Channel channel)
public int getChannelCount()
public Channel getChannelAt(int index)
public Channel[] createChannelArray()
public void readFromStream(InputStream stream, TvDataService dataService) throws IOException, FileFormatException
IOException
FileFormatException
public void readFromStream(InputStream stream, TvDataService dataService, boolean compressed) throws IOException, FileFormatException
IOException
FileFormatException
public void readFromFile(File file, TvDataService dataService) throws IOException, FileFormatException
IOException
FileFormatException
public void writeToStream(OutputStream stream) throws IOException, FileFormatException
IOException
FileFormatException
public void writeToFile(File file) throws IOException, FileFormatException
IOException
FileFormatException
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)