|
From: <zep...@us...> - 2007-09-28 18:50:35
|
Revision: 353
http://flatpack.svn.sourceforge.net/flatpack/?rev=353&view=rev
Author: zepernick
Date: 2007-09-28 11:50:36 -0700 (Fri, 28 Sep 2007)
Log Message:
-----------
fixed a couple problems with the examples
Modified Paths:
--------------
trunk/src/site/index.xml
Modified: trunk/src/site/index.xml
===================================================================
--- trunk/src/site/index.xml 2007-09-28 18:44:03 UTC (rev 352)
+++ trunk/src/site/index.xml 2007-09-28 18:50:36 UTC (rev 353)
@@ -134,7 +134,7 @@
<div class="source"><pre>
//Obtain the proper parser for your needs
- Parser parser = DefaultParserFactory.getInstance().newDelimitedParser(
+ Parser parser = DefaultParserFactory.getInstance().newFixedLengthParser(
new FileReader("map.pzmap.xml"), //fixed with column map
new FileReader("DataFile.txt")); //txt file to parse
@@ -153,7 +153,7 @@
<div class="source"><pre>
final String msg = "data data2 data3 data4"
//Obtain the proper parser for your needs
- Parser parser = DefaultParserFactory.getInstance().newDelimitedParser(
+ Parser parser = DefaultParserFactory.getInstance().newFixedLengthParser(
new FileReader("map.pzmap.xml"), //fixed with column map to bind col names
new StringReader(mag)); //data to parse
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|