From 3d8ec0dc34a6d61b41bcdfcad3b3ed243dbf9d26 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Sat, 30 Aug 2008 16:59:55 +0000 Subject: [PATCH] Start to support HPBF PLC parts git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@690534 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hpbf/dev/PLCDumper.java | 15 +- .../apache/poi/hpbf/model/QuillContents.java | 3 + .../poi/hpbf/model/qcbits/QCPLCBit.java | 175 ++++++++++++++++++ .../poi/hpbf/model/TestQuillContents.java | 63 +++++++ 4 files changed, 245 insertions(+), 11 deletions(-) create mode 100644 src/scratchpad/src/org/apache/poi/hpbf/model/qcbits/QCPLCBit.java diff --git a/src/scratchpad/src/org/apache/poi/hpbf/dev/PLCDumper.java b/src/scratchpad/src/org/apache/poi/hpbf/dev/PLCDumper.java index 368755efc0..cdec78c8cf 100644 --- a/src/scratchpad/src/org/apache/poi/hpbf/dev/PLCDumper.java +++ b/src/scratchpad/src/org/apache/poi/hpbf/dev/PLCDumper.java @@ -20,17 +20,11 @@ import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; -import org.apache.poi.ddf.DefaultEscherRecordFactory; -import org.apache.poi.ddf.EscherRecord; import org.apache.poi.hpbf.HPBFDocument; import org.apache.poi.hpbf.model.QuillContents; import org.apache.poi.hpbf.model.qcbits.QCBit; -import org.apache.poi.poifs.filesystem.DirectoryNode; -import org.apache.poi.poifs.filesystem.DocumentEntry; import org.apache.poi.poifs.filesystem.POIFSFileSystem; import org.apache.poi.util.HexDump; -import org.apache.poi.util.LittleEndian; -import org.apache.poi.util.StringUtil; /** * For dumping out the PLC contents of QC Bits of a @@ -41,8 +35,8 @@ public class PLCDumper { private HPBFDocument doc; private QuillContents qc; - public PLCDumper(HPBFDocument doc) { - this.doc = doc; + public PLCDumper(HPBFDocument hpbfDoc) { + doc = hpbfDoc; qc = doc.getQuillContents(); } public PLCDumper(POIFSFileSystem fs) throws IOException { @@ -67,7 +61,6 @@ public class PLCDumper { } private void dumpPLC() { - QuillContents qc = doc.getQuillContents(); QCBit[] bits = qc.getBits(); for(int i=0; i