You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2016/12/11 21:15:20 UTC

svn commit: r1773685 - in /poi/trunk: BiffViewer.launch src/java/org/apache/poi/hssf/dev/BiffViewer.java

Author: centic
Date: Sun Dec 11 21:15:20 2016
New Revision: 1773685

URL: http://svn.apache.org/viewvc?rev=1773685&view=rev
Log:
Revert "Add more output to BiffViewer for local debugging"

This reverts commit b6959b0d14b001ec374f60990671ff21bbcc24ec.

Modified:
    poi/trunk/BiffViewer.launch
    poi/trunk/src/java/org/apache/poi/hssf/dev/BiffViewer.java

Modified: poi/trunk/BiffViewer.launch
URL: http://svn.apache.org/viewvc/poi/trunk/BiffViewer.launch?rev=1773685&r1=1773684&r2=1773685&view=diff
==============================================================================
--- poi/trunk/BiffViewer.launch (original)
+++ poi/trunk/BiffViewer.launch Sun Dec 11 21:15:20 2016
@@ -11,7 +11,6 @@
 <listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
 </listAttribute>
 <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.apache.poi.hssf.dev.BiffViewer"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="--escher test-data/spreadsheet/57456.xls"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="/tmp/45312.xls"/>
 <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="ApachePOI"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-javaagent:/opt/file-leak-detector/target/file-leak-detector-1.9-SNAPSHOT-jar-with-dependencies.jar=http=19998,strong,excludes=file-leak-detector.exclude,dumpatshutdown"/>
 </launchConfiguration>

Modified: poi/trunk/src/java/org/apache/poi/hssf/dev/BiffViewer.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/dev/BiffViewer.java?rev=1773685&r1=1773684&r2=1773685&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/dev/BiffViewer.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/dev/BiffViewer.java Sun Dec 11 21:15:20 2016
@@ -29,7 +29,6 @@ import java.io.PrintWriter;
 import java.io.Writer;
 import java.nio.charset.Charset;
 import java.util.ArrayList;
-import java.util.Arrays;
 import java.util.List;
 
 import org.apache.poi.hssf.record.ArrayRecord;
@@ -246,11 +245,6 @@ public final class BiffViewer {
             }
             Record record;
             if (dumpInterpretedRecords) {
-			    ps.println();
-			    ps.println("Remainging: " + recStream.remaining());
-			    byte[] data = ((BiffDumpingStream)is).getData();
-			    ps.println("Record-Data: " + HexDump.toHex(Arrays.copyOfRange(data, 0, Math.min(100, data.length))));
-
                 record = createRecord (recStream);
                 if (record.getSid() == ContinueRecord.sid) {
                     continue;
@@ -755,10 +749,6 @@ public final class BiffViewer {
 		public void close() throws IOException {
 			_is.close();
 		}
-       
-       public byte[] getData() {
-           return _data;
-       }		
 	}
 
 	private static final int DUMP_LINE_LEN = 16;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org