com.iheartradio.m3u8.data.EncryptionMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of open-m3u8 Show documentation
Show all versions of open-m3u8 Show documentation
An open source M3U8 playlist parser java library.
The newest version!
package com.iheartradio.m3u8.data;
import java.util.HashMap;
import java.util.Map;
public enum EncryptionMethod {
NONE("NONE"),
AES("AES-128"),
SAMPLE_AES("SAMPLE-AES");
private static final Map sMap = new HashMap();
private final String value;
static {
for (EncryptionMethod encryptionMethod : EncryptionMethod.values()) {
sMap.put(encryptionMethod.value, encryptionMethod);
}
}
private EncryptionMethod(String value) {
this.value = value;
}
public static EncryptionMethod fromValue(String value) {
return sMap.get(value);
}
public String getValue() {
return this.value;
}
}