]> source.dussan.org Git - poi.git/commitdiff
Some small output changes to BiffViewer
authorGlen Stampoultzis <glens@apache.org>
Fri, 12 Apr 2002 14:50:56 +0000 (14:50 +0000)
committerGlen Stampoultzis <glens@apache.org>
Fri, 12 Apr 2002 14:50:56 +0000 (14:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352401 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/dev/BiffViewer.java

index 85cde58afb8878c1a6f4fb62be873d31b7006ed4..cc03e0988b2fa0f70ab4048b6da46fec0ff746e3 100644 (file)
@@ -144,13 +144,14 @@ public class BiffViewer
 
         try
         {
-            long  offset  = 0;
+//            long  offset  = 0;
             short rectype = 0;
 
             do
             {
-                System.out.println("you are at offset " + loc);
                 rectype = LittleEndian.readShort(in);
+                System.out.println("============================================");
+                System.out.println("you are at offset " + loc);
                 loc     += 2;
                 if (rectype != 0)
                 {
@@ -165,14 +166,14 @@ public class BiffViewer
                         System.out.println(loc);
                     }
                     loc    += recsize;
-                    offset += 4 + recsize;
+//                    offset += 4 + recsize;
                     if (dump)
                     {
-                        System.out
-                            .println("fixing to recordize the following");
-                        System.out.println("rectype = "
+//                        System.out
+//                            .println("fixing to recordize the following");
+                        System.out.println("rectype = 0x"
                                            + Integer.toHexString(rectype));
-                        System.out.println("recsize = "
+                        System.out.println("recsize = 0x"
                                            + Integer.toHexString(recsize));
                         System.out.println(
                             "--------------------------------------------");
@@ -632,7 +633,7 @@ public class BiffViewer
         {
             realretval      = new Record[ 1 ];
             realretval[ 0 ] = retval;
-            System.out.println("recordid = " + rectype + ", size =" + size);
+            System.out.println("recordid = 0x" + Integer.toHexString(rectype) + ", size =" + size);
             System.out.println(realretval[ 0 ].toString());
         }
         return realretval;