poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kiwiwi...@apache.org
Subject svn commit: r1722249 - in /poi/trunk/src/scratchpad/src/org/apache/poi/hwmf: record/HwmfBitmap16.java usermodel/HwmfPicture.java
Date Tue, 29 Dec 2015 23:53:55 GMT
Author: kiwiwings
Date: Tue Dec 29 23:53:52 2015
New Revision: 1722249

URL: http://svn.apache.org/viewvc?rev=1722249&view=rev
Log:
WMF - remove test output

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hwmf/record/HwmfBitmap16.java
    poi/trunk/src/scratchpad/src/org/apache/poi/hwmf/usermodel/HwmfPicture.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwmf/record/HwmfBitmap16.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwmf/record/HwmfBitmap16.java?rev=1722249&r1=1722248&r2=1722249&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwmf/record/HwmfBitmap16.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwmf/record/HwmfBitmap16.java Tue Dec 29 23:53:52
2015
@@ -18,7 +18,6 @@
 package org.apache.poi.hwmf.record;
 
 import java.awt.image.BufferedImage;
-import java.io.FileOutputStream;
 import java.io.IOException;
 
 import org.apache.poi.util.LittleEndianConsts;
@@ -77,9 +76,9 @@ public class HwmfBitmap16 {
         byte buf[] = new byte[bytes];
         leis.read(buf);
         
-        FileOutputStream fos = new FileOutputStream("bla16.bmp");
-        fos.write(buf);
-        fos.close();
+//        FileOutputStream fos = new FileOutputStream("bla16.bmp");
+//        fos.write(buf);
+//        fos.close();
         
         
 //        BufferedImage bi = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwmf/usermodel/HwmfPicture.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwmf/usermodel/HwmfPicture.java?rev=1722249&r1=1722248&r2=1722249&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwmf/usermodel/HwmfPicture.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwmf/usermodel/HwmfPicture.java Tue Dec 29
23:53:52 2015
@@ -18,7 +18,6 @@
 package org.apache.poi.hwmf.usermodel;
 
 import java.io.BufferedInputStream;
-import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.util.ArrayList;
@@ -71,12 +70,12 @@ public class HwmfPicture {
             int remainingSize = (int)(recordSize - consumedSize);
             assert(remainingSize >= 0);
             if (remainingSize > 0) {
-                byte remaining[] = new byte[remainingSize];
-                leis.read(remaining);
-                FileOutputStream fos = new FileOutputStream("remaining.dat");
-                fos.write(remaining);
-                fos.close();
-//                 leis.skip(remainingSize);
+//                byte remaining[] = new byte[remainingSize];
+//                leis.read(remaining);
+//                FileOutputStream fos = new FileOutputStream("remaining.dat");
+//                fos.write(remaining);
+//                fos.close();
+                 leis.skip(remainingSize);
             }
         }
     }



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


Mime
View raw message