public class SoundType extends MediaTypeParameter
Sound
property.
Supported versions: 2.1, 3.0, 4.0
Modifier and Type | Field and Description |
---|---|
static SoundType |
AAC |
static SoundType |
MIDI |
static SoundType |
MP3 |
static SoundType |
MPEG |
static SoundType |
OGG |
static SoundType |
WAV |
extension, mediaType
value
Modifier and Type | Method and Description |
---|---|
static Collection<SoundType> |
all()
Gets all of the parameter values that are defined as static constants in
this class.
|
static SoundType |
find(String type,
String mediaType,
String extension)
Searches for a parameter value that is defined as a static constant in
this class.
|
static SoundType |
get(String type,
String mediaType,
String extension)
Searches for a parameter value and creates one if it cannot be found.
|
equals, getExtension, getMediaType, hashCode
getSupportedVersions, getValue, isSupportedBy, toString
public static SoundType find(String type, String mediaType, String extension)
type
- the TYPE parameter value to search for (e.g. "MP3") or null
to not search by this valuemediaType
- the media type to search for (e.g. "audio/mp3") or null
to not search by this valueextension
- the file extension to search for (excluding the ".",
e.g. "mp3") or null to not search by this valuepublic static SoundType get(String type, String mediaType, String extension)
==
equality.type
- the TYPE parameter value to search for (e.g. "MP3") or null
to not search by this valuemediaType
- the media type to search for (e.g. "audio/mp3") or null
to not search by this valueextension
- the file extension to search for (excluding the ".",
e.g. "mp3") or null to not search by this valuepublic static Collection<SoundType> all()
Copyright © 2012–2023 Michael Angstadt. All rights reserved.