directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r159226 - directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/utils/LdapDN.java
Date Mon, 28 Mar 2005 08:40:42 GMT
Author: elecharny
Date: Mon Mar 28 00:40:29 2005
New Revision: 159226

URL: http://svn.apache.org/viewcvs?view=rev&rev=159226
Log:
For an unknown reason, the correct LdapDN class didn't made its way to the Subversion repository...

Replaced the old and buggy version by the good one. (Subclipse need to be improved a lot !)

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/utils/LdapDN.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/utils/LdapDN.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/utils/LdapDN.java?view=diff&r1=159225&r2=159226
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/utils/LdapDN.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/utils/LdapDN.java
Mon Mar 28 00:40:29 2005
@@ -47,17 +47,17 @@
  *-    &lt;spaces&gt;                 ::= ' ' &lt;spaces&gt; | e <br>
  * </p>
  *
- * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public class LdapDN
 {
     //~ Static fields/initializers -----------------------------------------------------------------
 
     /** "oid." static */
-    private static final byte[] OID_LOWER = new byte[] { 'o', 'i', 'd', '.' };
+    private static final char[] OID_LOWER = new char[] { 'o', 'i', 'd', '.' };
 
     /** "OID." static */
-    private static final byte[] OID_UPPER = new byte[] { 'O', 'I', 'D', '.' };
+    private static final char[] OID_UPPER = new char[] { 'O', 'I', 'D', '.' };
 
     //~ Methods ------------------------------------------------------------------------------------
 
@@ -71,7 +71,7 @@
      * @param pos The current position in the byte buffer
      * @return The new position in the byte buffer
     */
-    private static int parseSpaces( byte[] bytes, int pos )
+    private static int parseSpaces( char[] bytes, int pos )
     {
 
         while ( DNUtils.isChar( bytes, pos, ' ' ) )
@@ -94,7 +94,7 @@
      * @param pos The current position in the byte buffer
      * @return The new position in the byte buffer, or -1 if the rule does not apply to the
byte buffer
      */
-    private static int parseAttributeValue( byte[] bytes, int pos )
+    private static int parseAttributeValue( char[] bytes, int pos )
     {
 
         if ( DNUtils.isChar( bytes, pos, '#' ) )
@@ -226,7 +226,7 @@
      * @param pos The current position in the byte buffer
      * @return The new position in the byte buffer, or -1 if the rule does not apply to the
byte buffer
      */
-    private static int parseOidPrefix( byte[] bytes, int pos )
+    private static int parseOidPrefix( char[] bytes, int pos )
     {
 
         if ( ( DNUtils.areEquals( bytes, pos, OID_LOWER ) == -1 ) &&
@@ -253,7 +253,7 @@
      * @param pos The current position in the byte buffer
      * @return The new position in the byte buffer, or -1 if the rule does not apply to the
byte buffer
      */
-    private static int parseOidValue(byte[] bytes, int pos)
+    private static int parseOidValue(char[] bytes, int pos)
     {
         // <attributType> ::= [0-9] <digits> <oids>
         if ( DNUtils.isDigit( bytes, pos ) == false )
@@ -319,7 +319,7 @@
      * @param pos The current position in the byte buffer
      * @return The new position in the byte buffer, or -1 if the rule does not apply to the
byte buffer
      */
-    private static int parseAttributeType( byte[] bytes, int pos )
+    private static int parseAttributeType( char[] bytes, int pos )
     {
 
         // <attributType> ::= [a-zA-Z] <keychars> | <oidPrefix> [0-9] <digits>
<oids> | [0-9] <digits> <oids>
@@ -369,7 +369,7 @@
      * @param pos The current position in the byte buffer
      * @return The new position in the byte buffer, or -1 if the rule does not apply to the
byte buffer
      */
-    private static int parseAttributeTypeAndValues( byte[] bytes, int pos )
+    private static int parseAttributeTypeAndValues( char[] bytes, int pos )
     {
 
         while ( true )
@@ -423,7 +423,7 @@
      * @param pos The current position in the buffer
      * @return The new position in the byte buffer, or -1 if the rule does not apply to the
byte buffer 
      */
-    private static int parseNameComponent( byte[] bytes, int pos )
+    private static int parseNameComponent( char[] bytes, int pos )
     {
 
         if ( ( pos = parseAttributeType( bytes, pos ) ) == -1 )
@@ -467,7 +467,7 @@
      * @return A String containing the DN. 
      * @exception A DecoderException is thrown if the buffer does not contains a valid DN.
      */
-    public static String parseDN( byte[] bytes ) throws DecoderException
+    public static String parseDN( char[] bytes ) throws DecoderException
     {
 
         // <distinguishedName> ::= e



Mime
View raw message