You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by bo...@apache.org on 2018/04/01 09:12:51 UTC
[1/3] commons-compress git commit: (doc) use BufferedOutputStream in
examples for compressing
Repository: commons-compress
Updated Branches:
refs/heads/master f13364b02 -> 7a8f3c379
(doc) use BufferedOutputStream in examples for compressing
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/e144806c
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/e144806c
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/e144806c
Branch: refs/heads/master
Commit: e144806ccb217b020c4fe8bd9463982ac5fe909a
Parents: a189697
Author: Marchenko Sergey <se...@mzsl.ru>
Authored: Sun Apr 1 00:18:34 2018 +0300
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sun Apr 1 11:11:06 2018 +0200
----------------------------------------------------------------------
src/site/xdoc/examples.xml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/e144806c/src/site/xdoc/examples.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/examples.xml b/src/site/xdoc/examples.xml
index 2781c74..98f9846 100644
--- a/src/site/xdoc/examples.xml
+++ b/src/site/xdoc/examples.xml
@@ -555,7 +555,7 @@ bzIn.close();
<source><![CDATA[
InputStream in = Files.newInputStream(Paths.get("archive.tar"));
OutputStream fout = Files.newOutputStream(Paths.get("archive.tar.gz"));
-BufferedOutputStream out = new BufferedInputStream(fout);
+BufferedOutputStream out = new BufferedOutputStream(fout);
BZip2CompressorOutputStream bzOut = new BZip2CompressorOutputStream(out);
final byte[] buffer = new byte[buffersize];
int n = 0;
@@ -755,7 +755,7 @@ lzmaIn.close();
<source><![CDATA[
InputStream in = Files.newInputStream(Paths.get("archive.tar"));
OutputStream fout = Files.newOutputStream(Paths.get("archive.tar.lzma"));
-BufferedOutputStream out = new BufferedInputStream(fout);
+BufferedOutputStream out = new BufferedOutputStream(fout);
LZMACompressorOutputStream lzOut = new LZMACompressorOutputStream(out);
final byte[] buffer = new byte[buffersize];
int n = 0;
@@ -797,7 +797,7 @@ defIn.close();
<source><![CDATA[
InputStream in = Files.newInputStream(Paths.get("archive.tar"));
OutputStream fout = Files.newOutputStream(Paths.get("some-file"));
-BufferedOutputStream out = new BufferedInputStream(fout);
+BufferedOutputStream out = new BufferedOutputStream(fout);
DeflateCompressorOutputStream defOut = new DeflateCompressorOutputStream(out);
final byte[] buffer = new byte[buffersize];
int n = 0;
@@ -872,7 +872,7 @@ zIn.close();
<source><![CDATA[
InputStream in = Files.newInputStream(Paths.get("archive.tar"));
OutputStream fout = Files.newOutputStream(Paths.get("archive.tar.sz"));
-BufferedOutputStream out = new BufferedInputStream(fout);
+BufferedOutputStream out = new BufferedOutputStream(fout);
FramedSnappyCompressorOutputStream snOut = new FramedSnappyCompressorOutputStream(out);
final byte[] buffer = new byte[buffersize];
int n = 0;
@@ -917,7 +917,7 @@ zIn.close();
<source><![CDATA[
InputStream in = Files.newInputStream(Paths.get("archive.tar"));
OutputStream fout = Files.newOutputStream(Paths.get("archive.tar.lz4"));
-BufferedOutputStream out = new BufferedInputStream(fout);
+BufferedOutputStream out = new BufferedOutputStream(fout);
FramedLZ4CompressorOutputStream lzOut = new FramedLZ4CompressorOutputStream(out);
final byte[] buffer = new byte[buffersize];
int n = 0;
@@ -955,7 +955,7 @@ zsIn.close();
<source><![CDATA[
InputStream in = Files.newInputStream(Paths.get("archive.tar"));
OutputStream fout = Files.newOutputStream(Paths.get("archive.tar.zstd"));
-BufferedOutputStream out = new BufferedInputStream(fout);
+BufferedOutputStream out = new BufferedOutputStream(fout);
ZstdCompressorOutputStream zOut = new ZstdCompressorOutputStream(out);
final byte[] buffer = new byte[buffersize];
int n = 0;
[2/3] commons-compress git commit: fix the error in the gzip
compression example
Posted by bo...@apache.org.
fix the error in the gzip compression example
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/a189697f
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/a189697f
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/a189697f
Branch: refs/heads/master
Commit: a189697fe51f4d304b8999886dc7a22281cd470e
Parents: f13364b
Author: Marchenko Sergey <se...@mzsl.ru>
Authored: Sat Mar 31 21:02:54 2018 +0300
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sun Apr 1 11:11:06 2018 +0200
----------------------------------------------------------------------
src/site/xdoc/examples.xml | 6 +++---
src/site/xdoc/pack200.xml | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/a189697f/src/site/xdoc/examples.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/examples.xml b/src/site/xdoc/examples.xml
index c7f10c8..2781c74 100644
--- a/src/site/xdoc/examples.xml
+++ b/src/site/xdoc/examples.xml
@@ -581,7 +581,7 @@ in.close();
InputStream fin = Files.newInputStream(Paths.get("archive.tar.gz"));
BufferedInputStream in = new BufferedInputStream(fin);
OutputStream out = Files.newOutputStream(Paths.get("archive.tar"));
-GZipCompressorInputStream gzIn = new GZipCompressorInputStream(in);
+GzipCompressorInputStream gzIn = new GzipCompressorInputStream(in);
final byte[] buffer = new byte[buffersize];
int n = 0;
while (-1 != (n = gzIn.read(buffer))) {
@@ -597,8 +597,8 @@ gzIn.close();
<source><![CDATA[
InputStream in = Files.newInputStream(Paths.get("archive.tar"));
OutputStream fout = Files.newOutputStream(Paths.get("archive.tar.gz"));
-BufferedOutputStream out = new BufferedInputStream(fout);
-GZipCompressorOutputStream gzOut = new GZipCompressorOutputStream(out);
+BufferedOutputStream out = new BufferedOutputStream(fout);
+GzipCompressorOutputStream gzOut = new GzipCompressorOutputStream(out);
final byte[] buffer = new byte[buffersize];
int n = 0;
while (-1 != (n = in.read(buffer))) {
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/a189697f/src/site/xdoc/pack200.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/pack200.xml b/src/site/xdoc/pack200.xml
index 79e252f..2861caa 100644
--- a/src/site/xdoc/pack200.xml
+++ b/src/site/xdoc/pack200.xml
@@ -37,7 +37,7 @@
JDK creates GZip compressed archives (<code>.pack.gz</code>) by
default, the streams provided by the Pack200 package only
perform the actual Pack200 operation. Wrap them in an
- additional <code>GZipCompressor(In|Out)putStream</code> in order to deal
+ additional <code>GzipCompressor(In|Out)putStream</code> in order to deal
with deflated streams.</p>
<subsection name="Pack200Strategy">
[3/3] commons-compress git commit: record change, closes #63
Posted by bo...@apache.org.
record change, closes #63
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/7a8f3c37
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/7a8f3c37
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/7a8f3c37
Branch: refs/heads/master
Commit: 7a8f3c379fdb17fc57484123a5a81b4aeb4cb234
Parents: e144806
Author: Stefan Bodewig <bo...@apache.org>
Authored: Sun Apr 1 11:12:31 2018 +0200
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sun Apr 1 11:12:31 2018 +0200
----------------------------------------------------------------------
src/changes/changes.xml | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/7a8f3c37/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 5f3f9fc..31b2439 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -51,6 +51,10 @@ The <action> type attribute can be add,update,fix,remove.
<action issue="COMPRESS-446" type="fix" date="2018-03-29">
Fixed resource leak in ParallelScatterZipCreator#writeTo.
</action>
+ <action type="update" date="2018-04-01" due-to="Marchenko Sergey">
+ Fixed some code examples.
+ Github Pull Request #63.
+ </action>
</release>
<release version="1.16.1" date="2018-02-10"
description="Release 1.16.1">