Author: sebb
Date: Wed Mar 23 11:17:25 2011
New Revision: 1084539
URL: http://svn.apache.org/viewvc?rev=1084539&view=rev
Log:
COMPRESS-125 BZip2CompressorInputStream throws IOException if underlying
stream returns available() == 0.
Removed the check.
Modified:
commons/proper/compress/trunk/src/changes/changes.xml
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java
Modified: commons/proper/compress/trunk/src/changes/changes.xml
URL:
http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/changes/changes.xml?rev=1084539&r1=1084538&r2=1084539&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/changes/changes.xml (original)
+++ commons/proper/compress/trunk/src/changes/changes.xml Wed Mar 23 11:17:25
2011
@@ -45,6 +45,10 @@ The <action> type attribute can be add,u
</properties>
<body>
<release version="1.2" date="as in SVN" description="Release 1.2">
+ <action issue="COMPRESS-125" type="fix" date="2011-03-23">
+ BZip2CompressorInputStream throws IOException if underlying stream
returns available() == 0.
+ Removed the check.
+ </action>
<action issue="COMPRESS-127" type="fix" date="2011-03-23">
Calling close() on inputStream returned by
CompressorStreamFactory.createCompressorInputStream()
does not close the underlying input stream.
Modified:
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java
URL:
http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java?rev=1084539&r1=1084538&r2=1084539&view=diff
==============================================================================
---
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java
(original)
+++
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java
Wed Mar 23 11:17:25 2011
@@ -208,9 +208,6 @@ public class BZip2CompressorInputStream
if (null == in) {
throw new IOException("No InputStream");
}
- if (in.available() == 0) {
- throw new IOException("Empty InputStream");
- }
checkMagicChar('B', "first");
checkMagicChar('Z', "second");
checkMagicChar('h', "third");