org.apache.directory.shared.ldap.ldif
Class LdifComposerImpl

java.lang.Object
  extended byorg.apache.directory.shared.ldap.ldif.LdifComposerImpl
All Implemented Interfaces:
LdifComposer

public class LdifComposerImpl
extends java.lang.Object
implements LdifComposer

An LDAP Data Interchange Format (LDIF) composer.

Version:
$Revision: 379008 $
Author:
Alex Karasulu, $Author: akarasulu $

Constructor Summary
LdifComposerImpl()
           
 
Method Summary
 char[] base64encode(byte[] a_byteArray)
          Encodes an binary data into a base64 String.
 java.lang.String compose(MultiMap a_attrHash)
          Generates an LDIF from a multi map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdifComposerImpl

public LdifComposerImpl()
Method Detail

compose

public java.lang.String compose(MultiMap a_attrHash)
Generates an LDIF from a multi map.

Specified by:
compose in interface LdifComposer
Parameters:
a_attrHash - the multi map of single and multivalued attributes.
Returns:
the LDIF as a String.

base64encode

public char[] base64encode(byte[] a_byteArray)
Encodes an binary data into a base64 String.

Parameters:
a_byteArray - the value of a binary attribute.
Returns:
the encoded binary data as a char array.


Copyright © 2003-2006 . All Rights Reserved.