| @@ -2,7 +2,6 @@ package altk.comm.engine; | |||||
| import java.io.IOException; | import java.io.IOException; | ||||
| import java.io.InputStream; | import java.io.InputStream; | ||||
| import java.text.ParseException; | |||||
| import java.util.HashMap; | import java.util.HashMap; | ||||
| import java.util.Map; | import java.util.Map; | ||||
| import java.util.zip.ZipInputStream; | import java.util.zip.ZipInputStream; | ||||
| @@ -14,7 +13,6 @@ import javax.xml.parsers.SAXParserFactory; | |||||
| import org.json.simple.JSONObject; | import org.json.simple.JSONObject; | ||||
| import org.json.simple.parser.JSONParser; | import org.json.simple.parser.JSONParser; | ||||
| import org.xml.sax.Attributes; | import org.xml.sax.Attributes; | ||||
| import org.xml.sax.InputSource; | import org.xml.sax.InputSource; | ||||
| import org.xml.sax.SAXException; | import org.xml.sax.SAXException; | ||||
| @@ -110,15 +108,15 @@ public abstract class XMLSAXBroadcast extends Broadcast | |||||
| } | } | ||||
| else if (qName.equals(CHANNEL_KEY)) | else if (qName.equals(CHANNEL_KEY)) | ||||
| { | { | ||||
| JSONParser jsonParser = new JSONParser(); | |||||
| String channel_str = getTrimmedText(); | String channel_str = getTrimmedText(); | ||||
| try { | try { | ||||
| JSONParser jsonParser = new JSONParser(); | |||||
| channel_json = (JSONObject) jsonParser.parse(channel_str); | channel_json = (JSONObject) jsonParser.parse(channel_str); | ||||
| } catch (org.json.simple.parser.ParseException e) { | } catch (org.json.simple.parser.ParseException e) { | ||||
| throw new RuntimeException(String.format("<%s> is not json string: %s", CHANNEL_KEY, channel_str)); | throw new RuntimeException(String.format("<%s> is not json string: %s", CHANNEL_KEY, channel_str)); | ||||
| } | } | ||||
| daily_stop = (String)channel_json.get(DAILY_STOP_KEY); | |||||
| daily_stop = (String)channel_json.get(DAILY_START_KEY); | |||||
| daily_stop = (String)channel_json.get("broadcast_daily_stop"); | |||||
| daily_start = (String)channel_json.get("broadcast_daily_start"); | |||||
| } | } | ||||
| else if (inRecipientProp) | else if (inRecipientProp) | ||||
| { | { | ||||