]> source.dussan.org Git - poi.git/commitdiff
fix broken compilation. removed a reference to a class from the scratchpad.
authorYegor Kozlov <yegor@apache.org>
Tue, 11 Sep 2007 13:08:45 +0000 (13:08 +0000)
committerYegor Kozlov <yegor@apache.org>
Tue, 11 Sep 2007 13:08:45 +0000 (13:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@574589 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ddf/EscherPictBlip.java
src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPictureData.java

index 802b267e2c4e94a9c22d3ea5dbc32784ff899f7c..5920d97b98180454fbfd1555e7e8459055154740 100644 (file)
@@ -20,7 +20,6 @@ import org.apache.poi.util.HexDump;
 import org.apache.poi.util.LittleEndian;\r
 import org.apache.poi.util.POILogFactory;\r
 import org.apache.poi.util.POILogger;\r
-import org.apache.poi.hslf.blip.Metafile;\r
 \r
 import java.awt.Dimension;\r
 import java.awt.Rectangle;\r
@@ -101,22 +100,6 @@ public class EscherPictBlip
         return bytesAfterHeader + HEADER_SIZE;\r
     }\r
     \r
-    private byte[] read(byte[] data, int pos) throws IOException {\r
-        ByteArrayOutputStream out = new ByteArrayOutputStream();\r
-        ByteArrayInputStream bis = new ByteArrayInputStream(data);\r
-        Metafile.Header header = new Metafile.Header();\r
-        header.read(data, pos);\r
-        bis.skip(pos + header.getSize());\r
-        InflaterInputStream inflater = new InflaterInputStream( bis );\r
-        byte[] chunk = new byte[4096];\r
-        int count;\r
-        while ((count = inflater.read(chunk)) >=0 ) {\r
-            out.write(chunk,0,count);\r
-        }\r
-        inflater.close();\r
-        return out.toByteArray();\r
-    }\r
-\r
     /**\r
      * Serializes the record to an existing byte array.\r
      *\r
index 2d7d6be360e23a80b55ed0d37c5a1a4014460ae5..b58bb88d68161bb9c7480b81f3fc9c2f9fa90558 100644 (file)
@@ -42,7 +42,7 @@ public class TestHSSFPictureData extends TestCase{
     static String cwd = System.getProperty("HSSF.testdata.path");\r
 \r
     public void testPictures() throws IOException {\r
-        FileInputStream is = new FileInputStream(new File(cwd, "SimpleWithImages-win.xls"));\r
+        FileInputStream is = new FileInputStream(new File(cwd, "SimpleWithImages.xls"));\r
         HSSFWorkbook wb = new HSSFWorkbook(is);\r
         is.close();\r
 \r