public final class Key extends Property
Modifier and Type | Class and Description |
---|---|
static class |
Key.Factory |
Property.Id
ILLEGAL_PARAMETER_MESSAGE
Constructor and Description |
---|
Key(byte[] binary) |
Key(byte[] binary,
Type contentType) |
Key(Group group,
java.util.List<Parameter> params,
java.lang.String value)
Factory constructor.
|
Key(java.util.List<Parameter> params,
java.lang.String value)
Factory constructor.
|
Key(java.net.URI uri) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBinary() |
java.lang.String |
getValue() |
void |
validate() |
assertOneOrLess, assertParametersEmpty, assertPidParameter, assertPrefParameter, assertTextParameter, assertTypeParameter, equals, getExtendedParameter, getExtendedParameters, getGroup, getId, getParameter, getParameters, getParameters, hashCode, toString
public Key(java.net.URI uri)
uri
- a key URIpublic Key(byte[] binary)
binary
- binary key datapublic Key(byte[] binary, Type contentType)
binary
- binary key datacontentType
- key MIME typepublic Key(java.util.List<Parameter> params, java.lang.String value) throws org.apache.commons.codec.DecoderException, java.net.URISyntaxException
params
- property parametersvalue
- string representation of a property valueorg.apache.commons.codec.DecoderException
- if the specified string is not a valid key encodingjava.net.URISyntaxException
- where the specified string is not a valid URIpublic Key(Group group, java.util.List<Parameter> params, java.lang.String value) throws org.apache.commons.codec.DecoderException, java.net.URISyntaxException
group
- property groupparams
- property parametersvalue
- string representation of a property valueorg.apache.commons.codec.DecoderException
- if the specified string is not a valid key encodingjava.net.URISyntaxException
- where the specified string is not a valid URI