directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 30759 - incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber
Date Tue, 27 Jul 2004 04:33:26 GMT
Author: akarasulu
Date: Mon Jul 26 21:33:25 2004
New Revision: 30759

Modified:
   incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber/TupleTreeAnalyzer.java
Log:
added static methods for analyzing while debugging

Modified: incubator/directory/snickers/trunk/ber-codec/src/java/org/apache/snickers/ber/TupleTreeAnalyzer.java
==============================================================================
--- 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
Mon Jul 26 21:33:25 2004
@@ -337,7 +337,7 @@
             jTextField1.setText( Integer.toString( tuple.getId() ) );
         }
 
-        if ( tuple.isPrimitive() )
+        if ( tuple.isPrimitive() )                                                      
               
         {
             ByteBuffer buf = ( ByteBuffer ) tuple.getLastValueChunk().rewind();
             byte[] bites = new byte[buf.remaining()];
@@ -352,6 +352,19 @@
         }
     }
 
+
+    public static void analyze( byte[] bites ) throws DecoderException
+    {
+        TupleTreeAnalyzer analyzer = new TupleTreeAnalyzer( bites );
+        analyzer.startup();
+    }
+
+
+    public static void analyze( ByteBuffer bites ) throws DecoderException
+    {
+        TupleTreeAnalyzer analyzer = new TupleTreeAnalyzer( bites );
+        analyzer.startup();
+    }
 
     class TupleTreeNodeAdapter implements TreeNode
     {

Mime
View raw message