From: <be...@us...> - 2006-10-31 11:44:46
|
Revision: 153 http://svn.sourceforge.net/pzfilereader/?rev=153&view=rev Author: benoitx Date: 2006-10-31 03:44:42 -0800 (Tue, 31 Oct 2006) Log Message: ----------- Added a few examples for the website. Modified Paths: -------------- trunk/src/site/navigation.xml Added Paths: ----------- trunk/src/site/parsing.xml Modified: trunk/src/site/navigation.xml =================================================================== --- trunk/src/site/navigation.xml 2006-10-31 11:24:43 UTC (rev 152) +++ trunk/src/site/navigation.xml 2006-10-31 11:44:42 UTC (rev 153) @@ -13,6 +13,8 @@ href="multiproject/pzfilereader/index.html" /> <item name="Documentation" href="documentation/index.html" /> + <item name="Examples" + href="parsing.html" /> <item name="History" href="history.html" /> <item name="Features" Added: trunk/src/site/parsing.xml =================================================================== --- trunk/src/site/parsing.xml (rev 0) +++ trunk/src/site/parsing.xml 2006-10-31 11:44:42 UTC (rev 153) @@ -0,0 +1,114 @@ +<document> + <properties> + <title>Parsing Examples</title> + </properties> + <head> + <meta name="description" + content="PZFileReader offers configurable flat file CSV and fixed length parser, released under the business-friendly Apache 2.0 license." + /> + + <meta name="keywords" content="CSV, Fixed length file parser" /> + <meta name="Subject" content="Date Calculators" /> + <meta name="Copyright" content="ObjectLab Financial Ltd" /> + <meta name="Language" content="English" /> + <meta name="Designer" content="ObjectLab Financial Ltd" /> + <meta name="Distribution" content="Global" /> + <meta name="robots" content="ALL"/> + <meta name="Revisit-After" content="20 Days" /> + </head> + <body> + <!-- The body of the document contains a number of sections --> + <section name="Parsing Examples"> + + <p>We thought that a few explicit examples would be good...The idea is to make our parsing extremely robust and flexible.</p> + + <subsection name="Delimiter Parsing"> + <p>Our library is very flexible and lets you define both the delimiter character and the qualifier. The qualifier is character that <strong>may</strong> + surround your element. Typically this would be a " in Excel, but Excel may <strong>not</strong> surround every element with it. Here are some examples:</p> + + <table> + <tr><th>Delimiter</th><th>Qualifier</th><th>Input</th><th>Output</th></tr> + <tr> + <td>,</td> + <td>"</td> + <td>a,b,c</td> + <td>3 elements: "a" "b" "c"</td> + </tr> + <tr> + <td>,</td> + <td>"</td> + <td>"a,b,c"</td> + <td>1 element: "a,b,c"</td> + </tr> + <tr> + <td>,</td> + <td>"</td> + <td>"a,b","c"</td> + <td>2 elements: "a,b" "c"</td> + </tr> + <tr> + <td>,</td> + <td>"</td> + <td> a,b,c</td> + <td>3 elements: "a" "b" "c"</td> + </tr> + <tr> + <td>,</td> + <td>"</td> + <td>a",b,c"</td> + <td>1 element: a",b,c"</td> + </tr> + <tr> + <td>,</td> + <td>"</td> + <td>"test1",test2,"0.00","another, element here",lastone</td> + <td>5 elements: "test1" "test2" "0.00" "another, element here" "lastone"</td> + </tr> + + <tr> + <td>,</td> + <td>'</td> + <td>a,b,c</td> + <td>3 elements: "a" "b" "c"</td> + </tr> + <tr> + <td>,</td> + <td>'</td> + <td>"a,b,c"</td> + <td>3 elements: ""a" "b" "c""</td> + </tr> + <tr> + <td>,</td> + <td>'</td> + <td>"a,b","c"</td> + <td>2 elements: ""a,b"" ""c""</td> + </tr> + <tr> + <td>,</td> + <td>'</td> + <td> a,b,c</td> + <td>3 elements: "a" "b" "c"</td> + </tr> + <tr> + <td>,</td> + <td>'</td> + <td>a",b,c"</td> + <td>3 elements: "a"" "b" "c""</td> + </tr> + <tr> + <td>,</td> + <td>'</td> + <td>"test1",test2,"0.00","another, element here",lastone</td> + <td>6 elements: ""test1"" "test2" ""0.00"" ""another" "element here\"" "lastone"</td> + </tr> + </table> + + </subsection> + + <subsection name="Fixed Width Parsing"> + </subsection> + + </section> + + </body> +</document> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |