directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r441256 - /directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
Date Thu, 07 Sep 2006 22:20:35 GMT
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



Mime
View raw message