Package primarydatamanager.primarydataservice

Examples of primarydatamanager.primarydataservice.ProgramFrameDispatcher


     * @param dir Directory that will used for the result
     */
    protected void execute(String dir) {
        ProgramFrameDispatcher[] dispatcher = new ProgramFrameDispatcher[mChannelList.length];
        for (int i = 0; i < dispatcher.length; i++) {
            dispatcher[i] = new ProgramFrameDispatcher(mChannelList[i]);
        }

        Date date = Date.getCurrentDate();
        for (int d = 0; d < DAYS_TO_DOWNLOAD; d++) {
            for (int ch = 0; ch < mChannelList.length; ch++) {
View Full Code Here


  public XmlTvDataHandler(XmlTvPDS xmlTvPDS) {
    this.mXmlTvPDS = xmlTvPDS;
  }

  private ProgramFrameDispatcher getProgramDispatcher(String channelId) {
    ProgramFrameDispatcher dispatcher = mDispatcherHash.get(channelId);
    if (dispatcher == null) {
      String[] s = channelId.split("_");
      Channel channel;
      if (s.length == 2) {
        channel = new Channel(null, s[0], s[1], java.util.TimeZone.getTimeZone("GMT+1"), "de", "(c) by TV-Browser");
      } else {
        channel = new Channel(null, s[0], s[0], java.util.TimeZone.getTimeZone("GMT+1"), "de", "(c) by TV-Browser");
      }
      dispatcher = new ProgramFrameDispatcher(channel);
      mDispatcherHash.put(channelId, dispatcher);
    }
    return dispatcher;
  }
View Full Code Here

    return super.isValid() && mFrame != null;
  }

  @Override
  protected void startProgram(final Date date, final int startTime) {
    ProgramFrameDispatcher dispatcher = getProgramDispatcher(getChannelId());
    mChannelCountry = dispatcher.getChannel().getCountry();

    mFrame = new ProgramFrame();
  }
View Full Code Here

    mFrame = new ProgramFrame();
  }

  @Override
  protected void endProgram() {
    ProgramFrameDispatcher dis = mDispatcherHash.get(getChannelId());
    if (dis != null) {
      dis.dispatchProgramFrame(mFrame, mDate);
    }

    mFrame = null;
  }
View Full Code Here

TOP

Related Classes of primarydatamanager.primarydataservice.ProgramFrameDispatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.