public class ChannelReader extends Object
Modifier and Type | Field and Description |
---|---|
private List<CustomChannel> |
channels |
private static org.apache.log4j.Logger |
log |
private String |
metaData |
Constructor and Description |
---|
ChannelReader() |
Modifier and Type | Method and Description |
---|---|
private void |
addChannel(String name,
String url,
String image,
int id,
boolean icy_reverse)
Create a Channel and add it to the List
|
private String |
createMetaData(String name,
String url,
String image)
Build a simple MetaData String for the Channel
|
List<CustomChannel> |
getChannels()
Read the RadioList.xml file and build a List of Radio Channels
|
private String |
getElement(Element element,
String name) |
private static org.apache.log4j.Logger log
private List<CustomChannel> channels
private String metaData
public List<CustomChannel> getChannels()
private String getElement(Element element, String name)
element
- name
- private void addChannel(String name, String url, String image, int id, boolean icy_reverse)
name
- url
- image
- id
- Copyright © 2013–2014. All rights reserved.