org.ldaptive.ad.io
Class FileTimeValueTranscoder

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

public class FileTimeValueTranscoder
extends AbstractStringValueTranscoder<Calendar>

Decodes and encodes an active directory file 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
FileTimeValueTranscoder()
           
 
Method Summary
 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.
 
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

FileTimeValueTranscoder

public FileTimeValueTranscoder()
Method Detail

decodeStringValue

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

Parameters:
value - to decode
Returns:
decoded value

encodeStringValue

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

Parameters:
value - to encode
Returns:
encoded value

getType

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

Returns:
type produced by this value transcoder


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