org.ldaptive.ad.io
Class DeltaTimeValueTranscoder

java.lang.Object
  extended by org.ldaptive.io.AbstractStringValueTranscoder<Long>
      extended by org.ldaptive.ad.io.DeltaTimeValueTranscoder
All Implemented Interfaces:
ValueTranscoder<Long>

public class DeltaTimeValueTranscoder
extends AbstractStringValueTranscoder<Long>

Decodes and encodes an active directory delta time value for use in an ldap attribute value.

Version:
$Revision: 3006 $ $Date: 2014-07-02 10:22:50 -0400 (Wed, 02 Jul 2014) $
Author:
Middleware Services

Constructor Summary
DeltaTimeValueTranscoder()
           
 
Method Summary
 Long decodeStringValue(String value)
          Decodes the supplied ldap attribute value into a custom type.
 String encodeStringValue(Long value)
          Encodes the supplied value into an ldap attribute value.
 Class<Long> getType()
          Returns the type produced by this value transcoder.
 
Methods inherited from class org.ldaptive.io.AbstractStringValueTranscoder
decodeBinaryValue, encodeBinaryValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeltaTimeValueTranscoder

public DeltaTimeValueTranscoder()
Method Detail

decodeStringValue

public Long decodeStringValue(String value)
Decodes the supplied ldap attribute value into a custom type.

Parameters:
value - to decode
Returns:
decoded value

encodeStringValue

public String encodeStringValue(Long value)
Encodes the supplied value into an ldap attribute value.

Parameters:
value - to encode
Returns:
encoded value

getType

public Class<Long> getType()
Returns the type produced by this value transcoder.

Returns:
type produced by this value transcoder


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.