From b1298ee87c180cf3b6dd5b122d16276224bc60fe Mon Sep 17 00:00:00 2001 From: Josh Micich Date: Wed, 6 Aug 2008 08:42:40 +0000 Subject: [PATCH] Added conditional format records to BiffViewer git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@683167 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hssf/dev/BiffViewer.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/java/org/apache/poi/hssf/dev/BiffViewer.java b/src/java/org/apache/poi/hssf/dev/BiffViewer.java index 175b92088..15177d0d9 100644 --- a/src/java/org/apache/poi/hssf/dev/BiffViewer.java +++ b/src/java/org/apache/poi/hssf/dev/BiffViewer.java @@ -129,6 +129,8 @@ public final class BiffViewer { case BoolErrRecord.sid: return new BoolErrRecord(in); case BottomMarginRecord.sid: return new BottomMarginRecord(in); case BoundSheetRecord.sid: return new BoundSheetRecord(in); + case CFHeaderRecord.sid: return new CFHeaderRecord(in); + case CFRuleRecord.sid: return new CFRuleRecord(in); case CalcCountRecord.sid: return new CalcCountRecord(in); case CalcModeRecord.sid: return new CalcModeRecord(in); case CategorySeriesAxisRecord.sid: return new CategorySeriesAxisRecord(in); @@ -288,10 +290,10 @@ public final class BiffViewer { } PrintStream ps; if (false) { // set to true to output to file - OutputStream os = new FileOutputStream(inFileName + ".out"); - ps = new PrintStream(os); + OutputStream os = new FileOutputStream(inFileName + ".out"); + ps = new PrintStream(os); } else { - ps = System.out; + ps = System.out; } BiffViewer viewer = new BiffViewer(inputFile, ps);