11package org .schabi .newpipe .extractor ;
22
3- /**
3+ /*
44 * Created by Adam Howard on 08/11/15.
55 *
66 * Copyright (c) Christian Schabesberger <chris.schabesberger@mailbox.org>
2222 * along with NewPipe. If not, see <http://www.gnu.org/licenses/>.
2323 */
2424
25- /**Static data about various media formats support by Newpipe, eg mime type, extension*/
25+ /**
26+ * Static data about various media formats support by Newpipe, eg mime type, extension
27+ */
2628
2729public enum MediaFormat {
2830 //video and audio combined formats
@@ -48,35 +50,44 @@ public enum MediaFormat {
4850 this .mimeType = mimeType ;
4951 }
5052
51- /**Return the friendly name of the media format with the supplied id
53+ /**
54+ * Return the friendly name of the media format with the supplied id
55+ *
5256 * @param ident the id of the media format. Currently an arbitrary, NewPipe-specific number.
5357 * @return the friendly name of the MediaFormat associated with this ids,
54- * or an empty String if none match it.*/
58+ * or an empty String if none match it.
59+ */
5560 public static String getNameById (int ident ) {
5661 for (MediaFormat vf : MediaFormat .values ()) {
57- if (vf .id == ident ) return vf .name ;
62+ if (vf .id == ident ) return vf .name ;
5863 }
5964 return "" ;
6065 }
6166
62- /**Return the file extension of the media format with the supplied id
67+ /**
68+ * Return the file extension of the media format with the supplied id
69+ *
6370 * @param ident the id of the media format. Currently an arbitrary, NewPipe-specific number.
6471 * @return the file extension of the MediaFormat associated with this ids,
65- * or an empty String if none match it.*/
72+ * or an empty String if none match it.
73+ */
6674 public static String getSuffixById (int ident ) {
6775 for (MediaFormat vf : MediaFormat .values ()) {
68- if (vf .id == ident ) return vf .suffix ;
76+ if (vf .id == ident ) return vf .suffix ;
6977 }
7078 return "" ;
7179 }
7280
73- /**Return the MIME type of the media format with the supplied id
81+ /**
82+ * Return the MIME type of the media format with the supplied id
83+ *
7484 * @param ident the id of the media format. Currently an arbitrary, NewPipe-specific number.
7585 * @return the MIME type of the MediaFormat associated with this ids,
76- * or an empty String if none match it.*/
86+ * or an empty String if none match it.
87+ */
7788 public static String getMimeById (int ident ) {
7889 for (MediaFormat vf : MediaFormat .values ()) {
79- if (vf .id == ident ) return vf .mimeType ;
90+ if (vf .id == ident ) return vf .mimeType ;
8091 }
8192 return "" ;
8293 }
0 commit comments