public final class Sound extends Property
| Modifier and Type | Class and Description |
|---|---|
static class |
Sound.Factory |
Property.IdILLEGAL_PARAMETER_MESSAGE| Constructor and Description |
|---|
Sound(byte[] binary) |
Sound(byte[] binary,
Type contentType) |
Sound(java.util.List<Parameter> params,
java.lang.String value)
Factory constructor.
|
Sound(java.net.URI uri) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBinary() |
java.net.URI |
getUri() |
java.lang.String |
getValue() |
void |
validate() |
assertOneOrLess, assertParametersEmpty, assertPidParameter, assertPrefParameter, assertTextParameter, assertTypeParameter, equals, getExtendedParameter, getExtendedParameters, getGroup, getId, getParameter, getParameters, getParameters, hashCode, toStringpublic Sound(java.net.URI uri)
uri - a URI specifying a sound locationpublic Sound(byte[] binary)
binary - a byte array of sound datapublic Sound(byte[] binary,
Type contentType)
binary - a byte array of sound datacontentType - the MIME type of the sound datapublic Sound(java.util.List<Parameter> params, java.lang.String value) throws java.net.URISyntaxException, org.apache.commons.codec.DecoderException
params - property parametersvalue - string representation of a property valuejava.net.URISyntaxException - where the specified string is not a valid URIorg.apache.commons.codec.DecoderException - where the specified data string cannot be decoded