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