directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r169728 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/BitString.java
Date Wed, 11 May 2005 23:36:14 GMT
Author: elecharny
Date: Wed May 11 16:36:14 2005
New Revision: 169728

URL: http://svn.apache.org/viewcvs?rev=169728&view=rev
Log:
Added two methods : the first one return a byte array representing the reqFlags, 
the second give back the number of unused bits as a byte.

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/BitString.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/BitString.java?rev=169728&r1=169727&r2=169728&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/BitString.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/BitString.java
Wed May 11 16:36:14 2005
@@ -206,6 +206,24 @@
 
         setBytes( bytes, nbBytes );
     }
+    
+    /**
+     * Get the representation of a BitString
+     * @return A byte array which represent the BitString
+     */
+    public byte[] getData()
+    {
+        return bytes;
+    }
+
+    /**
+     * Get the number of unused bits 
+     * @return A byte which represent the number of unused bits
+     */
+    public byte getUnusedBits()
+    {
+        return (byte)nbUnusedBits;
+    }
 
     /**
      * Get the bit stored into the BitString at a specific position? The position start at
0,



Mime
View raw message