You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by le...@apache.org on 2012/03/10 19:06:15 UTC
svn commit: r1299245 -
/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java
Author: lehmi
Date: Sat Mar 10 18:06:15 2012
New Revision: 1299245
URL: http://svn.apache.org/viewvc?rev=1299245&view=rev
Log:
PDFBOX-1232: fixed the usage of IOException
Modified:
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java
Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java?rev=1299245&r1=1299244&r2=1299245&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/filter/FlateFilter.java Sat Mar 10 18:06:15 2012
@@ -31,7 +31,6 @@ import org.apache.pdfbox.cos.COSArray;
import org.apache.pdfbox.cos.COSBase;
import org.apache.pdfbox.cos.COSDictionary;
import org.apache.pdfbox.cos.COSName;
-import org.apache.tika.io.IOExceptionWithCause;
/**
* This is the used for the FlateDecode filter.
@@ -136,7 +135,9 @@ public class FlateFilter implements Filt
// if the stream is corrupt a DataFormatException may occur
LOG.error("FlateFilter: stop reading corrupt stream due to a DataFormatException");
// re-throw the exception, caller has to handle it
- throw new IOExceptionWithCause(exception);
+ IOException io = new IOException();
+ io.initCause(exception);
+ throw io;
}
finally
{