public final class Photo extends Property
Modifier and Type | Class and Description |
---|---|
static class |
Photo.Factory |
Property.Id
ILLEGAL_PARAMETER_MESSAGE
Constructor and Description |
---|
Photo(byte[] binary) |
Photo(byte[] binary,
Type contentType) |
Photo(java.util.List<Parameter> params,
java.lang.String value)
Factory constructor.
|
Photo(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, toString
public Photo(java.net.URI uri)
uri
- a URI that specifies the location of a photopublic Photo(byte[] binary)
binary
- a byte array of photo datapublic Photo(byte[] binary, Type contentType)
binary
- a byte array of photo datacontentType
- the MIME type of the photo datapublic Photo(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 URI value is not a valid URIorg.apache.commons.codec.DecoderException
- where the specified photo data value cannot be decoded