Package de.sfuhrm.radiorecorder.metadata
Enum Class MimeType
- All Implemented Interfaces:
Serializable,Comparable<MimeType>,Constable
Mime types for use in the application.
- Author:
- Stephan Fuhrmann
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMIME type forapplication/ogg.MIME type forapplication/pls+xml.MIME type foraudio/aac,audio/aacporaudio/mp4.MIME type foraudio/mpeg.MIME type foraudio/mpegurl.MIME type foraudio/ogg.MIME type foraudio/x-mpegurl.MIME type foraudio/x-ms-wma.MIME type foraudio/x-scpls.MIME type foraudio/x-wav. -
Method Summary
Modifier and TypeMethodDescriptionbyContentType(String contentType) Finds the mime type by content type.static MimeTypeReturns the enum constant of this class with the specified name.static MimeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUDIO_MPEG
MIME type foraudio/mpeg. -
AUDIO_OGG
MIME type foraudio/ogg. -
AUDIO_XWAV
MIME type foraudio/x-wav. -
AUDIO_XMSWMA
MIME type foraudio/x-ms-wma. -
AUDIO_MPEGURL
MIME type foraudio/mpegurl. -
AUDIO_XMPEGURL
MIME type foraudio/x-mpegurl. -
AUDIO_XSCPLS
MIME type foraudio/x-scpls. -
APPLICATION_OGG
MIME type forapplication/ogg. -
APPLICATION_PLS_XML
MIME type forapplication/pls+xml. -
AUDIO_AAC
MIME type foraudio/aac,audio/aacporaudio/mp4.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
byContentType
Finds the mime type by content type.- Parameters:
contentType- a content type String for example"audio/mpeg".- Returns:
- the identified enum instance wrapped in an
Optionalwith the possibility of an empty Optional if not found.
-