directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r263917 - /directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/AbstractContainer.java
Date Sun, 28 Aug 2005 20:45:23 GMT
Author: elecharny
Date: Sun Aug 28 13:45:20 2005
New Revision: 263917

URL: http://svn.apache.org/viewcvs?rev=263917&view=rev
Log:
Add a clean method

Modified:
    directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/AbstractContainer.java

Modified: directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/AbstractContainer.java
URL: http://svn.apache.org/viewcvs/directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/AbstractContainer.java?rev=263917&r1=263916&r2=263917&view=diff
==============================================================================
--- directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/AbstractContainer.java
(original)
+++ directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/AbstractContainer.java
Sun Aug 28 13:45:20 2005
@@ -20,6 +20,7 @@
 import org.apache.asn1new.ber.grammar.IGrammar;
 import org.apache.asn1new.ber.grammar.IStates;
 import org.apache.asn1new.ber.tlv.TLV;
+import org.apache.asn1new.ber.tlv.TLVStateEnum;
 
 
 /**
@@ -251,5 +252,18 @@
     public void setParentTLV(TLV parentTLV)
     {
         this.parentTLV = parentTLV;
+    }
+    
+    /**
+     * Clean the container for the next usage.
+     *
+     */
+    public void clean()
+    {
+        currentGrammar = 0;
+        tlv = null;
+        parentTLV = null;
+        transition = 0;
+        state = TLVStateEnum.TAG_STATE_START;
     }
 }



Mime
View raw message