poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ye...@apache.org
Subject svn commit: r574589 - in /poi/trunk/src: java/org/apache/poi/ddf/EscherPictBlip.java testcases/org/apache/poi/hssf/usermodel/TestHSSFPictureData.java
Date Tue, 11 Sep 2007 13:08:46 GMT
Author: yegor
Date: Tue Sep 11 06:08:45 2007
New Revision: 574589

URL: http://svn.apache.org/viewvc?rev=574589&view=rev
Log:
fix broken compilation. removed a reference to a class from the scratchpad.

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

Modified: poi/trunk/src/java/org/apache/poi/ddf/EscherPictBlip.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ddf/EscherPictBlip.java?rev=574589&r1=574588&r2=574589&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ddf/EscherPictBlip.java (original)
+++ poi/trunk/src/java/org/apache/poi/ddf/EscherPictBlip.java Tue Sep 11 06:08:45 2007
@@ -20,7 +20,6 @@
 import org.apache.poi.util.LittleEndian;
 import org.apache.poi.util.POILogFactory;
 import org.apache.poi.util.POILogger;
-import org.apache.poi.hslf.blip.Metafile;
 
 import java.awt.Dimension;
 import java.awt.Rectangle;
@@ -101,22 +100,6 @@
         return bytesAfterHeader + HEADER_SIZE;
     }
     
-    private byte[] read(byte[] data, int pos) throws IOException {
-        ByteArrayOutputStream out = new ByteArrayOutputStream();
-        ByteArrayInputStream bis = new ByteArrayInputStream(data);
-        Metafile.Header header = new Metafile.Header();
-        header.read(data, pos);
-        bis.skip(pos + header.getSize());
-        InflaterInputStream inflater = new InflaterInputStream( bis );
-        byte[] chunk = new byte[4096];
-        int count;
-        while ((count = inflater.read(chunk)) >=0 ) {
-            out.write(chunk,0,count);
-        }
-        inflater.close();
-        return out.toByteArray();
-    }
-
     /**
      * Serializes the record to an existing byte array.
      *

Modified: poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPictureData.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPictureData.java?rev=574589&r1=574588&r2=574589&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPictureData.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFPictureData.java Tue Sep
11 06:08:45 2007
@@ -42,7 +42,7 @@
     static String cwd = System.getProperty("HSSF.testdata.path");
 
     public void testPictures() throws IOException {
-        FileInputStream is = new FileInputStream(new File(cwd, "SimpleWithImages-win.xls"));
+        FileInputStream is = new FileInputStream(new File(cwd, "SimpleWithImages.xls"));
         HSSFWorkbook wb = new HSSFWorkbook(is);
         is.close();
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message