aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2016-12-11 21:15:20 +0000
committerDominik Stadler <centic@apache.org>2016-12-11 21:15:20 +0000
commit2dc2ab97e96995155af50d2376c5ef21678a0b0e (patch)
tree007eb2d1b39d38908d55188a0d9fd779ec5cd125
parent7db0e463740e610a617ed3b7260826da86e68761 (diff)
downloadpoi-2dc2ab97e96995155af50d2376c5ef21678a0b0e.tar.gz
poi-2dc2ab97e96995155af50d2376c5ef21678a0b0e.zip
Revert "Add more output to BiffViewer for local debugging"
This reverts commit b6959b0d14b001ec374f60990671ff21bbcc24ec. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1773685 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--BiffViewer.launch3
-rw-r--r--src/java/org/apache/poi/hssf/dev/BiffViewer.java10
2 files changed, 1 insertions, 12 deletions
diff --git a/BiffViewer.launch b/BiffViewer.launch
index 4b76fd1673..de070c9a61 100644
--- a/BiffViewer.launch
+++ b/BiffViewer.launch
@@ -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>
diff --git a/src/java/org/apache/poi/hssf/dev/BiffViewer.java b/src/java/org/apache/poi/hssf/dev/BiffViewer.java
index 8f2de9fe0b..5465f0ff10 100644
--- a/src/java/org/apache/poi/hssf/dev/BiffViewer.java
+++ b/src/java/org/apache/poi/hssf/dev/BiffViewer.java
@@ -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;