Android Open Source - M3UPlayer M3 U Tool Set






From Project

Back to project page M3UPlayer.

License

The source code is released under:

Apache License

If you think the Android project M3UPlayer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.iptv.parser;
/*ww  w .java  2 s. com*/
/**
 * This class provides some useful static methods.
 * 
 * @author Ke
 */
public class M3UToolSet {
  /**
   * Load a m3u file. The file size is larger, the time spends longer.
   * 
   * @param filename
   *            the m3u filename.
   * @return the instance of M3UFile.
   */
  public static M3UFile load(String filename) {
    final M3UFile file = new M3UFile();
    final M3UHandler handler = new M3UHandler() {

      @Override
      public void onReadEXTM3U(M3UHead header) {
        file.setHeader(header);
      }

      @Override
      public void onReadEXTINF(M3UItem item) {
        file.addItem(item);
      }
    };
    M3UParser.getInstance().parse(filename, handler);
    return file;
  }
}




Java Source Code List

com.iptv.parser.M3UFile.java
com.iptv.parser.M3UHandler.java
com.iptv.parser.M3UHead.java
com.iptv.parser.M3UItem.java
com.iptv.parser.M3UParser.java
com.iptv.parser.M3UToolSet.java
com.iptv.parser.package-info.java
com.iptv.player.Player.java
com.iptv.utils.BaseActivity.java
com.iptv.utils.FileBrowser.java
com.iptv.utils.Interlude.java
com.iptv.utils.MessageBox.java
com.iptv.utils.SystemProperties.java