commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r925259 - /commons/proper/compress/trunk/src/site/xdoc/examples.xml
Date Fri, 19 Mar 2010 15:13:34 GMT
Author: bodewig
Date: Fri Mar 19 15:13:23 2010
New Revision: 925259

URL: http://svn.apache.org/viewvc?rev=925259&view=rev
Log:
code examples are wrong

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=925259&r1=925258&r2=925259&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/site/xdoc/examples.xml (original)
+++ commons/proper/compress/trunk/src/site/xdoc/examples.xml Fri Mar 19 15:13:23 2010
@@ -77,7 +77,7 @@ arOutput.closeArchiveEntry();
 ArArchiveEntry entry = (ArArchiveEntry) arInput.getNextEntry();
 byte[] content = new byte[entry.getSize()];
 LOOP UNTIL entry.getSize() HAS BEEN READ {
-    arInput(read, offset, content.length - offset);
+    arInput.read(content, offset, content.length - offset);
 }
 ]]></source>
 
@@ -107,7 +107,7 @@ cpioOutput.closeArchiveEntry();
 CpioArchiveEntry entry = cpioInput.getNextCPIOEntry();
 byte[] content = new byte[entry.getSize()];
 LOOP UNTIL entry.getSize() HAS BEEN READ {
-    cpioInput(read, offset, content.length - offset);
+    cpioInput.read(content, offset, content.length - offset);
 }
 ]]></source>
 
@@ -155,7 +155,7 @@ tarOutput.closeArchiveEntry();
 TarArchiveEntry entry = tarInput.getNextTarEntry();
 byte[] content = new byte[entry.getSize()];
 LOOP UNTIL entry.getSize() HAS BEEN READ {
-    tarInput(read, offset, content.length - offset);
+    tarInput.read(content, offset, content.length - offset);
 }
 ]]></source>
       </subsection>
@@ -178,7 +178,7 @@ zipOutput.closeArchiveEntry();
 ZipArchiveEntry entry = zipInput.getNextZipEntry();
 byte[] content = new byte[entry.getSize()];
 LOOP UNTIL entry.getSize() HAS BEEN READ {
-    zipInput(read, offset, content.length - offset);
+    zipInput.read(content, offset, content.length - offset);
 }
 ]]></source>
 
@@ -233,7 +233,7 @@ jarOutput.closeArchiveEntry();
 JarArchiveEntry entry = jarInput.getNextJarEntry();
 byte[] content = new byte[entry.getSize()];
 LOOP UNTIL entry.getSize() HAS BEEN READ {
-    jarInput(read, offset, content.length - offset);
+    jarInput.read(content, offset, content.length - offset);
 }
 ]]></source>
       </subsection>



Mime
View raw message