directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r226958 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java
Date Tue, 02 Aug 2005 06:02:16 GMT
Author: elecharny
Date: Mon Aug  1 23:02:13 2005
New Revision: 226958

URL: http://svn.apache.org/viewcvs?rev=226958&view=rev
Log:
- Added two constants for the TRUE and FALSE values
- completed the javadoc

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java?rev=226958&r1=226957&r2=226958&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java (original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java Mon
Aug  1 23:02:13 2005
@@ -41,8 +41,15 @@
     /** The current position of the last byte in the data buffer */
     private int    currentPos;
     
-    private static final byte[] ENCODED_TRUE = new byte[] { 0x01, 0x01, (byte)0xFF};
-    private static final byte[] ENCODED_FALSE = new byte[] { 0x01, 0x01, (byte)0x00};
+    /** The encoded byte for a TRUE value */ 
+    public static final byte TRUE_VALUE = (byte)0xFF;
+    
+    /** The encoded byte for a FALSE value */ 
+    public static final byte FALSE_VALUE = (byte)0x00;
+    
+    /** Pre-encoded PDUs for a TRUE and FALSE TLV */
+    private static final byte[] ENCODED_TRUE = new byte[] { 0x01, 0x01, TRUE_VALUE};
+    private static final byte[] ENCODED_FALSE = new byte[] { 0x01, 0x01, FALSE_VALUE};
 
     //~ Methods ------------------------------------------------------------------------------------
 



Mime
View raw message