Back to project page M3UPlayer.
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.
package com.iptv.parser; //ww w . j a va 2 s. c om /** * This class describes a general m3u file head. * * @author Ke */ public class M3UHead { /** * The human readable playlist name. */ private String mName; /** * The default for playlist media type. */ private String mType; /** * The default for playlist DLNA profile. */ private String mDLNAExtras; /** * The default for playlist media plugin (handler). */ private String mPlugin; public void setName(String name) { mName = name; } public String getName() { return mName; } public void setType(String type) { mType = type; } public String getType() { return mType; } public void setDLNAExtras(String profile) { mDLNAExtras = profile; } public String getDLNAExtras() { return mDLNAExtras; } public void setPlugin(String plugin) { mPlugin = plugin; } public String getPlugin() { return mPlugin; } @Override public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[Head]"); if (mName != null) { sb.append("\nName: " + mName); } if (mType != null) { sb.append("\nType: " + mType); } if (mDLNAExtras != null) { sb.append("\nDLNA Extras: " + mDLNAExtras); } if (mPlugin != null) { sb.append("\nPlugin: " + mPlugin); } return sb.toString(); } }