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 <ser...@mzsl.ru>
Authored: Sat Mar 31 21:02:54 2018 +0300
Committer: Stefan Bodewig <bode...@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">

Reply via email to