commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1152094 - /commons/proper/compress/trunk/src/site/xdoc/examples.xml
Date Fri, 29 Jul 2011 04:03:03 GMT
Author: bodewig
Date: Fri Jul 29 04:03:03 2011
New Revision: 1152094

URL: http://svn.apache.org/viewvc?rev=1152094&view=rev
Log:
wrong method name in examples

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=1152094&r1=1152093&r2=1152094&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/site/xdoc/examples.xml (original)
+++ commons/proper/compress/trunk/src/site/xdoc/examples.xml Fri Jul 29 04:03:03 2011
@@ -81,7 +81,7 @@ ArchiveInputStream input = new ArchiveSt
         <p>Adding an entry to an ar archive:</p>
 <source><![CDATA[
 ArArchiveEntry entry = new ArArchiveEntry(name, size);
-arOutput.putNextEntry(entry);
+arOutput.putArchiveEntry(entry);
 arOutput.write(contentOfEntry);
 arOutput.closeArchiveEntry();
 ]]></source>
@@ -119,7 +119,7 @@ LOOP UNTIL entry.getSize() HAS BEEN READ
         <p>Adding an entry to a cpio archive:</p>
 <source><![CDATA[
 CpioArchiveEntry entry = new CpioArchiveEntry(name, size);
-cpioOutput.putNextEntry(entry);
+cpioOutput.putArchiveEntry(entry);
 cpioOutput.write(contentOfEntry);
 cpioOutput.closeArchiveEntry();
 ]]></source>
@@ -175,7 +175,7 @@ LOOP UNTIL entry.getSize() HAS BEEN READ
 <source><![CDATA[
 TarArchiveEntry entry = new TarArchiveEntry(name);
 entry.setSize(size);
-tarOutput.putNextEntry(entry);
+tarOutput.putArchiveEntry(entry);
 tarOutput.write(contentOfEntry);
 tarOutput.closeArchiveEntry();
 ]]></source>
@@ -198,7 +198,7 @@ LOOP UNTIL entry.getSize() HAS BEEN READ
 <source><![CDATA[
 ZipArchiveEntry entry = new ZipArchiveEntry(name);
 entry.setSize(size);
-zipOutput.putNextEntry(entry);
+zipOutput.putArchiveEntry(entry);
 zipOutput.write(contentOfEntry);
 zipOutput.closeArchiveEntry();
 ]]></source>
@@ -253,7 +253,7 @@ try {
 <source><![CDATA[
 JarArchiveEntry entry = new JarArchiveEntry(name, size);
 entry.setSize(size);
-jarOutput.putNextEntry(entry);
+jarOutput.putArchiveEntry(entry);
 jarOutput.write(contentOfEntry);
 jarOutput.closeArchiveEntry();
 ]]></source>



Mime
View raw message