public class GeneralizedTimeValueTranscoder extends AbstractStringValueTranscoder<Calendar>
| Constructor and Description |
|---|
GeneralizedTimeValueTranscoder() |
| Modifier and Type | Method and Description |
|---|---|
Calendar |
decodeStringValue(String value)
Decodes the supplied ldap attribute value into a custom type.
|
String |
encodeStringValue(Calendar value)
Encodes the supplied value into an ldap attribute value.
|
Class<Calendar> |
getType()
Returns the type produced by this value transcoder.
|
protected Calendar |
parseGeneralizedTime(String value)
Parses the supplied value and sets a calendar with the appropriate fields.
|
decodeBinaryValue, encodeBinaryValuepublic Calendar decodeStringValue(String value)
ValueTranscodervalue - to decodepublic String encodeStringValue(Calendar value)
ValueTranscodervalue - to encodepublic Class<Calendar> getType()
ValueTranscoderprotected Calendar parseGeneralizedTime(String value) throws ParseException
value - of generalized time to parseParseException - if the value does not contain correct generalized time syntaxCopyright © 2023. All rights reserved.