directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: rev 45978 - incubator/directory/snickers/branches/ber-decoder/modules/runtime/src/java/org/apache/snickers/encoding/ber
Date Mon, 13 Sep 2004 15:43:36 GMT
Author: adc
Date: Mon Sep 13 08:43:35 2004
New Revision: 45978

Added:
   incubator/directory/snickers/branches/ber-decoder/modules/runtime/src/java/org/apache/snickers/encoding/ber/AOKDecoder.java
      - copied, changed from rev 36831, incubator/directory/snickers/branches/ber-decoder/modules/runtime/src/java/org/apache/snickers/encoding/ber/BERDecoder.java
Removed:
   incubator/directory/snickers/branches/ber-decoder/modules/runtime/src/java/org/apache/snickers/encoding/ber/BERDecoder.java
Log:
Renamed BERDecoder to AOKDecoder for partial refactor.

Copied: incubator/directory/snickers/branches/ber-decoder/modules/runtime/src/java/org/apache/snickers/encoding/ber/AOKDecoder.java
(from rev 36831, incubator/directory/snickers/branches/ber-decoder/modules/runtime/src/java/org/apache/snickers/encoding/ber/BERDecoder.java)
==============================================================================
--- incubator/directory/snickers/branches/ber-decoder/modules/runtime/src/java/org/apache/snickers/encoding/ber/BERDecoder.java
(original)
+++ incubator/directory/snickers/branches/ber-decoder/modules/runtime/src/java/org/apache/snickers/encoding/ber/AOKDecoder.java
Mon Sep 13 08:43:35 2004
@@ -17,10 +17,8 @@
 package org.apache.snickers.encoding.ber;
 
 import java.nio.ByteBuffer;
-import java.io.InputStream;
 
 import org.apache.snickers.encoding.DecoderException;
-import org.apache.snickers.runtime.ASN1Type;
 
 
 /**
@@ -55,7 +53,7 @@
  * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class BERDecoder implements Decoder
+public class AOKDecoder implements Decoder
 {
     public final State TAG_STATE = new TagState();
     public final State LENGTH_STATE = new LengthState();
@@ -80,7 +78,7 @@
     /**
      * Creates a stateful BER decoder which limits the tuple's value size.
      */
-    public BERDecoder()
+    public AOKDecoder()
     {
         stack = new TupleStack( this );
     }
@@ -118,11 +116,6 @@
         stack.setMonitor( monitor );
     }
 
-    public ASN1Type decode( InputStream stream )
-    {
-        return null;  //todo: consider this autogenerated code
-    }
-
     /**
      * Expects a ByteBuffer containing BER encoded data.
      *
@@ -184,7 +177,7 @@
 
                 if ( tagBuffer.isFixated() )
                 {
-                    tlv = new Tuple(tagBuffer);
+                    tlv = new Tuple( tagBuffer );
 
                     state = LENGTH_STATE;
 

Mime
View raw message