directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1042705 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/asn1/ber/AbstractContainer.java
Date Mon, 06 Dec 2010 16:26:02 GMT
Author: elecharny
Date: Mon Dec  6 16:26:01 2010
New Revision: 1042705

URL: http://svn.apache.org/viewvc?rev=1042705&view=rev
Log:
It's now possible to pass the stream directly to the base container

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/asn1/ber/AbstractContainer.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/asn1/ber/AbstractContainer.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/asn1/ber/AbstractContainer.java?rev=1042705&r1=1042704&r2=1042705&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/asn1/ber/AbstractContainer.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/asn1/ber/AbstractContainer.java
Mon Dec  6 16:26:01 2010
@@ -83,6 +83,15 @@ public abstract class AbstractContainer 
         state = TLVStateEnum.TAG_STATE_START;
     }
 
+    /**
+     * Creates a new instance of AbstractContainer with a starting state.
+     * 
+     * @param stream the buffer containing the data to decode
+     */
+    protected AbstractContainer(ByteBuffer stream) {
+        state = TLVStateEnum.TAG_STATE_START;
+        this.stream = stream;
+    }
 
     /**
      * Get the current grammar



Mime
View raw message