directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r208975 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/OID.java
Date Sun, 03 Jul 2005 21:38:21 GMT
Author: elecharny
Date: Sun Jul  3 14:38:19 2005
New Revision: 208975

URL: http://svn.apache.org/viewcvs?rev=208975&view=rev
Log:
Added two constructor :
 - OID( byte[] )
 - OID( String )

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/OID.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/OID.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/OID.java?rev=208975&r1=208974&r2=208975&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/OID.java (original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/OID.java Sun
Jul  3 14:38:19 2005
@@ -70,6 +70,24 @@
         // be created through the factory.
     }
 
+    /**
+     * Create a new OID object from a byte array
+     * @param oid
+     */
+    public OID( byte[] oid ) throws DecoderException
+    {
+        setOID(oid);
+    }
+
+    /**
+     * Create a new OID object from a String
+     * @param oid The String which is supposed to be an OID
+     */
+    public OID( String oid ) throws DecoderException
+    {
+        setOID( oid );
+    }
+
     //~ Methods ------------------------------------------------------------------------------------
     /**
      * Set the OID. It will be translated from a byte array to an internal representation.



Mime
View raw message