You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2006/09/08 00:20:35 UTC

svn commit: r441256 - /directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java

Author: elecharny
Date: Thu Sep  7 15:20:32 2006
New Revision: 441256

URL: http://svn.apache.org/viewvc?view=rev&rev=441256
Log:
Added the getBytes() method

Modified:
    directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java

Modified: directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java?view=diff&rev=441256&r1=441255&r2=441256
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java (original)
+++ directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java Thu Sep  7 15:20:32 2006
@@ -249,6 +249,16 @@
     }
     
     /**
+     * Get an UTF-8 representation of the normalized form of the DN
+     *
+     * @return A byte[] representation of the DN
+     */
+    public static byte[] getBytes( LdapDN dn )
+    {
+        return dn == null ? null : dn.bytes;
+    }
+    
+    /**
      * Get the number of NameComponent contained in this LdapDN
      *
      * @return The number of NameComponent contained in this LdapDN