public class FileTimeValueTranscoder extends AbstractStringValueTranscoder<ZonedDateTime>
Modifier and Type | Field and Description |
---|---|
private static long |
ERA_OFFSET
Number of milliseconds between standard Unix era (1/1/1970) and filetime start (1/1/1601).
|
private static long |
ONE_HUNDRED_NANOSECOND_INTERVAL
File time uses 100-nanosecond intervals.
|
Constructor and Description |
---|
FileTimeValueTranscoder() |
Modifier and Type | Method and Description |
---|---|
ZonedDateTime |
decodeStringValue(String value)
Decodes the supplied ldap attribute value into a custom type.
|
String |
encodeStringValue(ZonedDateTime value)
Encodes the supplied value into an ldap attribute value.
|
Class<ZonedDateTime> |
getType()
Returns the type produced by this value transcoder.
|
decodeBinaryValue, encodeBinaryValue
private static final long ERA_OFFSET
private static final long ONE_HUNDRED_NANOSECOND_INTERVAL
public ZonedDateTime decodeStringValue(String value)
ValueTranscoder
value
- to decodepublic String encodeStringValue(ZonedDateTime value)
ValueTranscoder
value
- to encodepublic Class<ZonedDateTime> getType()
ValueTranscoder
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.