You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/08/02 08:02:16 UTC
svn commit: r226958 -
/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java
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 ------------------------------------------------------------------------------------