From 4b20a61ad72e9647fcd30bbf0294d656ae984249 Mon Sep 17 00:00:00 2001 From: Glen Stampoultzis Date: Tue, 10 Feb 2004 22:04:24 +0000 Subject: [PATCH] Utility to dump drawing records. git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353500 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/util/DrawingDump.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/java/org/apache/poi/util/DrawingDump.java diff --git a/src/java/org/apache/poi/util/DrawingDump.java b/src/java/org/apache/poi/util/DrawingDump.java new file mode 100644 index 000000000..3c62f6736 --- /dev/null +++ b/src/java/org/apache/poi/util/DrawingDump.java @@ -0,0 +1,24 @@ +package org.apache.poi.util; + +import org.apache.poi.hssf.usermodel.HSSFWorkbook; +import org.apache.poi.hssf.usermodel.HSSFSheet; +import org.apache.poi.poifs.filesystem.POIFSFileSystem; + +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.IOException; + +/** + * Dump out the aggregated escher records + */ +public class DrawingDump +{ + public static void main( String[] args ) throws IOException + { + POIFSFileSystem fs = + new POIFSFileSystem(new FileInputStream(args[0])); + HSSFWorkbook wb = new HSSFWorkbook(fs); + HSSFSheet sheet = wb.getSheetAt(0); + sheet.dumpDrawingRecords(); + } +}