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 2017/02/04 13:52:05 UTC
[1/3] commons-compress git commit: Google Code is dead
Repository: commons-compress
Updated Branches:
refs/heads/master 33993cde7 -> ed3c605fc
Google Code is dead
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/906d212e
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/906d212e
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/906d212e
Branch: refs/heads/master
Commit: 906d212eb866b965d12950701bb49ecc4270776b
Parents: 33993cd
Author: Stefan Bodewig <bo...@apache.org>
Authored: Sat Feb 4 14:46:08 2017 +0100
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sat Feb 4 14:46:08 2017 +0100
----------------------------------------------------------------------
src/site/xdoc/examples.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/906d212e/src/site/xdoc/examples.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/examples.xml b/src/site/xdoc/examples.xml
index f624242..ec6a130 100644
--- a/src/site/xdoc/examples.xml
+++ b/src/site/xdoc/examples.xml
@@ -648,7 +648,7 @@ LOOP UNTIL entry.getSize() HAS BEEN READ {
<subsection name="Snappy">
<p>There are two different "formats" used for <a
- href="http://code.google.com/p/snappy/">Snappy</a>, one only
+ href="https://github.com/google/snappy/">Snappy</a>, one only
contains the raw compressed data while the other provides a
higher level "framing format" - Commons Compress offers two
different stream classes for reading either format.</p>
[3/3] commons-compress git commit: COMPRESS-381 working in memory
only may improve performance
Posted by bo...@apache.org.
COMPRESS-381 working in memory only may improve performance
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/ed3c605f
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/ed3c605f
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/ed3c605f
Branch: refs/heads/master
Commit: ed3c605fcbd48bfc52c4cb18b1d023257265890d
Parents: 6497dcf
Author: Stefan Bodewig <bo...@apache.org>
Authored: Sat Feb 4 14:51:28 2017 +0100
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sat Feb 4 14:51:28 2017 +0100
----------------------------------------------------------------------
src/site/xdoc/examples.xml | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/ed3c605f/src/site/xdoc/examples.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/examples.xml b/src/site/xdoc/examples.xml
index 79e8cf9..59fc851 100644
--- a/src/site/xdoc/examples.xml
+++ b/src/site/xdoc/examples.xml
@@ -51,6 +51,12 @@
users wrap their stream
in <code>Buffered<em>(In|Out)</em>putStream</code>s before
using the Commons Compress API.</p>
+
+ <p>When (de)compressing smaller files you may even benefit
+ from reading the whole file to uncompress into memory before
+ decompressing it or compressing to a
+ <code>ByteArrayOutputStream</code> so all operations happen in
+ memory.</p>
</subsection>
<subsection name="Factories">
[2/3] commons-compress git commit: mention LZ4 support coming in 1.14
Posted by bo...@apache.org.
mention LZ4 support coming in 1.14
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/6497dcf3
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/6497dcf3
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/6497dcf3
Branch: refs/heads/master
Commit: 6497dcf3319914fb457178bb32671f6238f1a7f5
Parents: 906d212
Author: Stefan Bodewig <bo...@apache.org>
Authored: Sat Feb 4 14:46:18 2017 +0100
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sat Feb 4 14:46:18 2017 +0100
----------------------------------------------------------------------
src/site/xdoc/examples.xml | 28 ++++++++++++++++++++++++++++
src/site/xdoc/index.xml | 3 ++-
2 files changed, 30 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/6497dcf3/src/site/xdoc/examples.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/examples.xml b/src/site/xdoc/examples.xml
index ec6a130..79e8cf9 100644
--- a/src/site/xdoc/examples.xml
+++ b/src/site/xdoc/examples.xml
@@ -682,6 +682,34 @@ zIn.close();
</subsection>
+ <subsection name="LZ4">
+
+ <p>There are two different "formats" used for <a
+ href="http://lz4.github.io/lz4/">lz4</a>. The format called
+ "block format" only contains the raw compressed data while the
+ other provides a higher level "frame format" - Commons
+ Compress offers two different stream classes for reading or
+ writing either format.</p>
+
+ <p>Uncompressing a given frame LZ4 file (you would
+ certainly add exception handling and make sure all streams
+ get closed properly):</p>
+<source><![CDATA[
+FileInputStream fin = new FileInputStream("archive.tar.sz");
+BufferedInputStream in = new BufferedInputStream(fin);
+FileOutputStream out = new FileOutputStream("archive.tar");
+FramedLZ4CompressorInputStream zIn = new FramedLZ4CompressorInputStream(in);
+final byte[] buffer = new byte[buffersize];
+int n = 0;
+while (-1 != (n = zIn.read(buffer))) {
+ out.write(buffer, 0, n);
+}
+out.close();
+zIn.close();
+]]></source>
+
+ </subsection>
+
<subsection name="Extending Commons Compress">
<p>
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/6497dcf3/src/site/xdoc/index.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml
index 60c0184..df42b69 100644
--- a/src/site/xdoc/index.xml
+++ b/src/site/xdoc/index.xml
@@ -27,7 +27,7 @@
<p>
The Apache Commons Compress library defines an API for
working with ar, cpio, Unix dump, tar, zip, gzip, XZ, Pack200,
- bzip2, 7z, arj, lzma, snappy, DEFLATE and Z files.
+ bzip2, 7z, arj, lzma, snappy, DEFLATE, lz4 and Z files.
</p>
<p>
The code in this component has many origins:
@@ -60,6 +60,7 @@
<subsection name="What's coming in 1.14?">
<ul>
<li>Added support for writing the Snappy format</li>
+ <li>Added support for the LZ4 compression format</li>
</ul>
</subsection>
<subsection name="What's new in 1.13?">