Author: bodewig
Date: Tue Oct 26 09:44:59 2010
New Revision: 1027427
URL: http://svn.apache.org/viewvc?rev=1027427&view=rev
Log:
write all buffered data to the stream in TarArchiveOutputStream#finish.
COMPRESS-119
Modified:
commons/proper/compress/trunk/src/changes/changes.xml
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarBuffer.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=1027427&r1=1027426&r2=1027427&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/changes/changes.xml (original)
+++ commons/proper/compress/trunk/src/changes/changes.xml Tue Oct 26 09:44:59
2010
@@ -44,7 +44,12 @@ The <action> type attribute can be add,u
<title>commons-compress</title>
</properties>
<body>
- <release version="1.1" date="as in SVN" description="Release 1.1">
+ <release version="1.2" date="as in SVN" description="Release 1.2">
+ <action issue="COMPRESS-119" type="fix" date="2010-10-26">
+ TarArchiveOutputStream#finish now writes all buffered data ot the
stream
+ </action>
+ </release>
+ <release version="1.1" date="2010-08-13" description="Release 1.1">
<action issue="COMPRESS-72" type="fix" date="2010-06-02">
Move acknowledgements from NOTICE to README
</action>
Modified:
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java
URL:
http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java?rev=1027427&r1=1027426&r2=1027427&view=diff
==============================================================================
---
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java
(original)
+++
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java
Tue Oct 26 09:44:59 2010
@@ -123,6 +123,7 @@ public class TarArchiveOutputStream exte
}
writeEOFRecord();
writeEOFRecord();
+ buffer.flushBlock();
finished = true;
}
Modified:
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarBuffer.java
URL:
http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarBuffer.java?rev=1027427&r1=1027426&r2=1027427&view=diff
==============================================================================
---
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarBuffer.java
(original)
+++
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarBuffer.java
Tue Oct 26 09:44:59 2010
@@ -379,7 +379,7 @@ class TarBuffer { // Not public, because
/**
* Flush the current data block if it has any data in it.
*/
- private void flushBlock() throws IOException {
+ void flushBlock() throws IOException {
if (outStream == null) {
throw new IOException("writing to an input buffer");
}