You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ni...@apache.org on 2014/04/25 00:12:49 UTC

svn commit: r1589894 - in /poi/site: publish/spreadsheet/how-to.html src/documentation/content/xdocs/spreadsheet/how-to.xml

Author: nick
Date: Thu Apr 24 22:12:49 2014
New Revision: 1589894

URL: http://svn.apache.org/r1589894
Log:
Make the path to the example a link, and fix the java class name in the example

Modified:
    poi/site/publish/spreadsheet/how-to.html
    poi/site/src/documentation/content/xdocs/spreadsheet/how-to.xml

Modified: poi/site/publish/spreadsheet/how-to.html
URL: http://svn.apache.org/viewvc/poi/site/publish/spreadsheet/how-to.html?rev=1589894&r1=1589893&r2=1589894&view=diff
==============================================================================
--- poi/site/publish/spreadsheet/how-to.html (original)
+++ poi/site/publish/spreadsheet/how-to.html Thu Apr 24 22:12:49 2014
@@ -750,8 +750,10 @@ The latest version is always available f
        file, which you will then pass to SAX.</p>
      
 <p>This example shows how to get at a single known sheet, or at
-       all sheets in the file. It is based on the example in svn
-       src/examples/src/org/apache/poi/xssf/eventusermodel/exmaples/FromHowTo.java</p>
+       all sheets in the file. It is based on the example in 
+       <a href="http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/xssf/eventusermodel/examples/FromHowTo.java">svn
+       src/examples/src/org/apache/poi/xssf/eventusermodel/examples/FromHowTo.java</a>
+</p>
 
 <pre class="code">
 import java.io.InputStream;
@@ -866,9 +868,9 @@ public class ExampleEventUserModel {
 	}
 	
 	public static void main(String[] args) throws Exception {
-		FromHowTo howto = new FromHowTo();
-		howto.processOneSheet(args[0]);
-		howto.processAllSheets(args[0]);
+		ExampleEventUserModel example = new ExampleEventUserModel();
+		example.processOneSheet(args[0]);
+		example.processAllSheets(args[0]);
 	}
 }
 </pre>

Modified: poi/site/src/documentation/content/xdocs/spreadsheet/how-to.xml
URL: http://svn.apache.org/viewvc/poi/site/src/documentation/content/xdocs/spreadsheet/how-to.xml?rev=1589894&r1=1589893&r2=1589894&view=diff
==============================================================================
--- poi/site/src/documentation/content/xdocs/spreadsheet/how-to.xml (original)
+++ poi/site/src/documentation/content/xdocs/spreadsheet/how-to.xml Thu Apr 24 22:12:49 2014
@@ -502,8 +502,9 @@ The latest version is always available f
        It provides methods to get the raw xml data from the rest of the
        file, which you will then pass to SAX.</p>
      <p>This example shows how to get at a single known sheet, or at
-       all sheets in the file. It is based on the example in svn
-       src/examples/src/org/apache/poi/xssf/eventusermodel/exmaples/FromHowTo.java</p>
+       all sheets in the file. It is based on the example in 
+       <link href="http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/xssf/eventusermodel/examples/FromHowTo.java">svn
+       src/examples/src/org/apache/poi/xssf/eventusermodel/examples/FromHowTo.java</link></p>
 <source><![CDATA[
 import java.io.InputStream;
 import java.util.Iterator;
@@ -617,9 +618,9 @@ public class ExampleEventUserModel {
 	}
 	
 	public static void main(String[] args) throws Exception {
-		FromHowTo howto = new FromHowTo();
-		howto.processOneSheet(args[0]);
-		howto.processAllSheets(args[0]);
+		ExampleEventUserModel example = new ExampleEventUserModel();
+		example.processOneSheet(args[0]);
+		example.processAllSheets(args[0]);
 	}
 }
 ]]></source>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org