directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r106376 - in incubator/directory/snickers/trunk: . ber-codec ber-codec/src/java/org/apache/snickers/ber
Date Wed, 24 Nov 2004 03:39:44 GMT
Author: akarasulu
Date: Tue Nov 23 19:39:44 2004
New Revision: 106376

Modified:
   incubator/directory/snickers/trunk/ber-codec/project.properties
   incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber/TupleEncodingVisitor.java
   incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber/TupleTreeAnalyzer.java
   incubator/directory/snickers/trunk/project.properties
Log:
Changes ...

 o fixed a few build issues with snacc4j 
 o added some extra constructors for an array of ByteBuffers to the analyzer
 o fixed tuple encoding visitor yet again (did this before but no check in) to
   clear the collection of buffers on a flush() operation which pushes those 
   buffers to be processed



Modified: incubator/directory/snickers/trunk/ber-codec/project.properties
Url: http://svn.apache.org/viewcvs/incubator/directory/snickers/trunk/ber-codec/project.properties?view=diff&rev=106376&p1=incubator/directory/snickers/trunk/ber-codec/project.properties&r1=106375&p2=incubator/directory/snickers/trunk/ber-codec/project.properties&r2=106376
==============================================================================
--- incubator/directory/snickers/trunk/ber-codec/project.properties	(original)
+++ incubator/directory/snickers/trunk/ber-codec/project.properties	Tue Nov 23 19:39:44 2004
@@ -15,3 +15,6 @@
 #maven.clover.instrument.tests=true
 maven.junit.fork=true
 maven.xdoc.includeProjectDocumentation=yes
+
+maven.repo.remote=http://cvs.apache.org/repository, http://ibiblio.org/maven, http://ldapd.sourceforge.net/maven/repository
+

Modified: incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber/TupleEncodingVisitor.java
Url: http://svn.apache.org/viewcvs/incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber/TupleEncodingVisitor.java?view=diff&rev=106376&p1=incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber/TupleEncodingVisitor.java&r1=106375&p2=incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber/TupleEncodingVisitor.java&r2=106376
==============================================================================
--- incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber/TupleEncodingVisitor.java
(original)
+++ incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber/TupleEncodingVisitor.java
Tue Nov 23 19:39:44 2004
@@ -159,6 +159,8 @@
      */
     public void flush()
     {
-        super.encodeOccurred( ( ByteBuffer [] ) buffers.toArray( EMPTY_ARRAY ) );
+        ByteBuffer[] array = ( ByteBuffer [] ) buffers.toArray( EMPTY_ARRAY );
+        buffers.clear();
+        super.encodeOccurred( array );
     }
 }

Modified: incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber/TupleTreeAnalyzer.java
Url: http://svn.apache.org/viewcvs/incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber/TupleTreeAnalyzer.java?view=diff&rev=106376&p1=incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber/TupleTreeAnalyzer.java&r1=106375&p2=incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber/TupleTreeAnalyzer.java&r2=106376
==============================================================================
--- incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber/TupleTreeAnalyzer.java
(original)
+++ incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber/TupleTreeAnalyzer.java
Tue Nov 23 19:39:44 2004
@@ -62,7 +62,7 @@
  */
 public class TupleTreeAnalyzer extends JFrame implements TreeSelectionListener
 {
-    private boolean doVmExit = true;
+    private boolean doVmExit = false;
     private BorderLayout layout = new BorderLayout();
     private JLabel statusBar = new JLabel("Ready");
     private JSplitPane jSplitPane1 = new JSplitPane();
@@ -117,7 +117,25 @@
         TupleTreeDecoder decoder = new TupleTreeDecoder();
         CallbackHistory history = new CallbackHistory();
         decoder.setCallback( history );
-        decoder.decode( encoded );
+        decoder.decode( encoded.duplicate() );
+        root = ( DefaultMutableTupleNode ) history.getMostRecent();
+
+        initGUI();
+        pack();
+    }
+
+
+    public TupleTreeAnalyzer( ByteBuffer[] encoded ) throws DecoderException
+    {
+        TupleTreeDecoder decoder = new TupleTreeDecoder();
+        CallbackHistory history = new CallbackHistory();
+        decoder.setCallback( history );
+
+        for ( int ii = 0; ii < encoded.length; ii++ )
+        {
+            decoder.decode( encoded[ii].duplicate() );
+        }
+
         root = ( DefaultMutableTupleNode ) history.getMostRecent();
 
         initGUI();

Modified: incubator/directory/snickers/trunk/project.properties
Url: http://svn.apache.org/viewcvs/incubator/directory/snickers/trunk/project.properties?view=diff&rev=106376&p1=incubator/directory/snickers/trunk/project.properties&r1=106375&p2=incubator/directory/snickers/trunk/project.properties&r2=106376
==============================================================================
--- incubator/directory/snickers/trunk/project.properties	(original)
+++ incubator/directory/snickers/trunk/project.properties	Tue Nov 23 19:39:44 2004
@@ -23,7 +23,7 @@
 # remote repository properties
 #
 
-maven.repo.remote=http://cvs.apache.org/repository, http://www.apache.org/dist/avalon, http://www.dpml.net,
http://ibiblio.org/maven, http://ldapd.sourceforge.net/maven/repository, http://ibiblio.org/maven
+maven.repo.remote=http://cvs.apache.org/repository, http://ibiblio.org/maven, http://ldapd.sourceforge.net/maven/repository
 maven.repo.central=minotaur.apache.org
 maven.repo.central.directory=/www/cvs.apache.org/repository
 maven.remote.group=apcvs

Mime
View raw message