commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r909427 - /commons/proper/compress/trunk/src/site/xdoc/examples.xml
Date Fri, 12 Feb 2010 14:34:08 GMT
Author: bodewig
Date: Fri Feb 12 14:34:07 2010
New Revision: 909427

URL: http://svn.apache.org/viewvc?rev=909427&view=rev
Log:
a bit too much copy-paste

Modified:
    commons/proper/compress/trunk/src/site/xdoc/examples.xml

Modified: commons/proper/compress/trunk/src/site/xdoc/examples.xml
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/site/xdoc/examples.xml?rev=909427&r1=909426&r2=909427&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/site/xdoc/examples.xml (original)
+++ commons/proper/compress/trunk/src/site/xdoc/examples.xml Fri Feb 12 14:34:07 2010
@@ -271,21 +271,21 @@
           the <code>java.util.zip</code> package of the Java class
           library.</p>
 
-        <p>Uncompressing a given bzip2 compressed file (you would
+        <p>Uncompressing a given gzip compressed file (you would
           certainly add exception handling and make sure all streams
           get closed properly):</p>
 <source><![CDATA[
 FileInputStream fin = new FileInputStream("archive.tar.gz");
 BufferedInputStream in = new BufferedInputStream(fin);
 FileOutputStream out = new FileOutputStream("archive.tar");
-GZipCompressorInputStream bzIn = new GZipCompressorInputStream(in);
+GZipCompressorInputStream gzIn = new GZipCompressorInputStream(in);
 final byte[] buffer = new byte[buffersize];
 int n = 0;
-while (-1 != (n = bzIn.read(buffer))) {
+while (-1 != (n = gzIn.read(buffer))) {
     out.write(buffer, 0, n);
 }
 out.close();
-bzIn.close();
+gzIn.close();
 ]]></source>
       </subsection>
 



Mime
View raw message