public final class Sound extends Property
Property.Id
Modifier and Type | Field and Description |
---|---|
static PropertyFactory<Sound> |
FACTORY |
ILLEGAL_PARAMETER_MESSAGE
Constructor and Description |
---|
Sound(byte[] binary) |
Sound(byte[] binary,
Type contentType) |
Sound(List<Parameter> params,
String value)
Factory constructor.
|
Sound(URI uri) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBinary() |
URI |
getUri() |
String |
getValue() |
void |
validate() |
assertOneOrLess, assertParametersEmpty, assertPidParameter, assertPrefParameter, assertTextParameter, assertTypeParameter, equals, getExtendedParameter, getExtendedParameters, getGroup, getId, getParameter, getParameters, getParameters, hashCode, toString
public static final PropertyFactory<Sound> FACTORY
public Sound(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(List<Parameter> params, String value) throws URISyntaxException, org.apache.commons.codec.DecoderException
params
- property parametersvalue
- string representation of a property valueURISyntaxException
- where the specified string is not a valid URIorg.apache.commons.codec.DecoderException
- where the specified data string cannot be decodedCopyright © 2008-2012 Micronode. All Rights Reserved.