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, encodeBinaryValue
public Calendar decodeStringValue(String value)
ValueTranscoder
value
- to decodepublic String encodeStringValue(Calendar value)
ValueTranscoder
value
- to encodepublic Class<Calendar> getType()
ValueTranscoder
protected Calendar parseGeneralizedTime(String value) throws ParseException
value
- of generalized time to parseParseException
- if the value does not contain correct generalized time syntaxCopyright © 2017. All rights reserved.