<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ralph's TechBlog &#187; CSV</title>
	<atom:link href="http://techblog.ralph-schuster.eu/category/projects/csv-projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://techblog.ralph-schuster.eu</link>
	<description>Technical stuff for IT experts</description>
	<lastBuildDate>Tue, 27 Dec 2011 09:38:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Nightly Builds</title>
		<link>http://techblog.ralph-schuster.eu/2011/02/02/nightly-builds/</link>
		<comments>http://techblog.ralph-schuster.eu/2011/02/02/nightly-builds/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 18:39:44 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Bugzilla for Java]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Templating]]></category>

		<guid isPermaLink="false">http://techblog.ralph-schuster.eu/?p=257</guid>
		<description><![CDATA[To all of you who don&#8217;t want to wait for the next releases of any of my projects there are good news. I introduced Nightly Builds now which are linked on individual project&#8217;s pages. In case you detect any missing build, just send me a message via the contact page.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechblog.ralph-schuster.eu%2F2011%2F02%2F02%2Fnightly-builds%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechblog.ralph-schuster.eu%2F2011%2F02%2F02%2Fnightly-builds%2F&amp;source=TechnicalG&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>To all of you who don&#8217;t want to wait for the next releases of any of my projects there are good news. I introduced Nightly Builds now which are linked on individual project&#8217;s pages. In case you detect any missing build, just send me a message via the <a title="Contact Me" href="http://techblog.ralph-schuster.eu/contact-me/" target="_blank">contact page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://techblog.ralph-schuster.eu/2011/02/02/nightly-builds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSV/Excel Utility Package V2.1 released</title>
		<link>http://techblog.ralph-schuster.eu/2011/01/10/csvexcel-utility-package-v2-1-released/</link>
		<comments>http://techblog.ralph-schuster.eu/2011/01/10/csvexcel-utility-package-v2-1-released/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 22:32:44 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[CSV]]></category>

		<guid isPermaLink="false">http://techblog.ralph-schuster.eu/?p=238</guid>
		<description><![CDATA[I finished this release some months ago but didn&#8217;t find time yet to finally release it. Version 2.1 introduces some new features and classes that ease handling of table-like data from different sources: New TableReader implementations for JDBC, XML, JTable New TableWriter implementations for HTML and XML Introduction of type conversion to allow object-string conversion [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechblog.ralph-schuster.eu%2F2011%2F01%2F10%2Fcsvexcel-utility-package-v2-1-released%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechblog.ralph-schuster.eu%2F2011%2F01%2F10%2Fcsvexcel-utility-package-v2-1-released%2F&amp;source=TechnicalG&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I finished this release some months ago but didn&#8217;t find time yet to finally release it. Version 2.1 introduces some new features and classes that ease handling of table-like data from different sources:</p>
<ul>
<li>New TableReader implementations for JDBC, XML, JTable</li>
<li>New TableWriter implementations for HTML and XML</li>
<li>Introduction of type conversion to allow object-string conversion and vice versa while reading and writing tables</li>
<li>New Reader and Writer wrappers that read and write JavaBeans.</li>
<li>New Filter implementations for TableReader that remove rows and columns.</li>
<li>Some abstract classes were separated into general base classes and  stream-handling classes. This allows easier development of non-stream  based implementations.</li>
</ul>
<p>You can download the new version <a title="Stable Release" href="http://www.ralph-schuster.eu/projects/csv/csv-stable.tar.gz" target="_self">here</a> or visit the <a title="CSV/Excel Utility Package" href="http://techblog.ralph-schuster.eu/csv-utility-package-for-java/">Homepage</a> of the utility where you will find some examples on how to use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://techblog.ralph-schuster.eu/2011/01/10/csvexcel-utility-package-v2-1-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSV/Excel Utility Package V2.0.2 released</title>
		<link>http://techblog.ralph-schuster.eu/2010/09/22/csvexcel-utility-package-v2-0-2-released/</link>
		<comments>http://techblog.ralph-schuster.eu/2010/09/22/csvexcel-utility-package-v2-0-2-released/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 09:06:00 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[CSV]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://techblog.ralph-schuster.eu/?p=218</guid>
		<description><![CDATA[The package has undergone some minor bugfixing andJUnit Test was introduced for CSV files. Thanks to eldn for his help making this release. You can download it here or visit the Homepage of the utility where you will find some examples on how to use it.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechblog.ralph-schuster.eu%2F2010%2F09%2F22%2Fcsvexcel-utility-package-v2-0-2-released%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechblog.ralph-schuster.eu%2F2010%2F09%2F22%2Fcsvexcel-utility-package-v2-0-2-released%2F&amp;source=TechnicalG&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The package has undergone some minor bugfixing andJUnit Test was introduced for CSV files. Thanks to eldn for his help making this release.</p>
<p>You can download it <a title="Stable Release" href="http://www.ralph-schuster.eu/projects/csv/csv-stable.tar.gz" target="_self">here</a> or visit the <a title="CSV/Excel Utility Package" href="../csv-utility-package-for-java/" target="_self">Homepage</a> of the utility where you will find some examples on how to use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://techblog.ralph-schuster.eu/2010/09/22/csvexcel-utility-package-v2-0-2-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSV/Excel Utility Package V2.0.1 released</title>
		<link>http://techblog.ralph-schuster.eu/2010/06/15/csvexcel-utility-package-v2-0-1-released/</link>
		<comments>http://techblog.ralph-schuster.eu/2010/06/15/csvexcel-utility-package-v2-0-1-released/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 08:44:52 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[CSV]]></category>

		<guid isPermaLink="false">http://techblog.ralph-schuster.eu/?p=211</guid>
		<description><![CDATA[It took me quite some time to upgrade this package to the next level and support Excel. It propably still has some flaws. However, I use it now for some months in production and fixed the most critical bugs. In fact, it seems to run quite stable now. Please note that upgrading from previous version [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechblog.ralph-schuster.eu%2F2010%2F06%2F15%2Fcsvexcel-utility-package-v2-0-1-released%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechblog.ralph-schuster.eu%2F2010%2F06%2F15%2Fcsvexcel-utility-package-v2-0-1-released%2F&amp;source=TechnicalG&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>It took me quite some time to upgrade this package to the next level and support Excel. It propably still has some flaws. However, I use it now for some months in production and fixed the most critical bugs. In fact, it seems to run quite stable now.</p>
<p>Please note that upgrading from previous version will require you to update your package imports.</p>
<p>You can download it <a title="Latest Release" href="http://www.ralph-schuster.eu/projects/csv/csv-current.tar.gz" target="_self">here</a> or visit the <a title="CSV/Excel Utility Package" href="http://techblog.ralph-schuster.eu/csv-utility-package-for-java/" target="_self">Homepage</a> of the utility where you will find some examples on how to use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://techblog.ralph-schuster.eu/2010/06/15/csvexcel-utility-package-v2-0-1-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSV Utility Package 2.0 Beta</title>
		<link>http://techblog.ralph-schuster.eu/2009/11/26/csv-utility-package-2-0-beta/</link>
		<comments>http://techblog.ralph-schuster.eu/2009/11/26/csv-utility-package-2-0-beta/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 12:25:30 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[CSV]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Excel]]></category>

		<guid isPermaLink="false">http://techblog.ralph-schuster.eu/?p=154</guid>
		<description><![CDATA[Some work has been spent over the last weeks to upgrade the stable CSV Utility Package. Of course, the new version contains all the useful existing functionality. The most beneficial improvement is the introduction of ExcelReader and ExcelWriter classes that behave like the CSV pendants. This means that you do not have to care about [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechblog.ralph-schuster.eu%2F2009%2F11%2F26%2Fcsv-utility-package-2-0-beta%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechblog.ralph-schuster.eu%2F2009%2F11%2F26%2Fcsv-utility-package-2-0-beta%2F&amp;source=TechnicalG&amp;style=compact&amp;hashtags=CSV,Excel&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Some work has been spent over the last weeks to upgrade the stable <a title="CSV/Excel Utility Package Homepage" href="http://techblog.ralph-schuster.eu/csv-utility-package-for-java/" target="_self">CSV Utility Package</a>. Of course, the new version contains all the useful existing functionality. The most beneficial improvement is the introduction of ExcelReader and ExcelWriter classes that behave like the CSV pendants. This means that you do not have to care about the underlying output format when you want to read or write table-structured data. The most important changes are:</p>
<ul>
<li>Introduction of a <a title="API TableReader" href="http://ralph-schuster.eu/projects/csv/csv-current/doc/api/csv/TableReader.html" target="_blank">TableReader</a> and <a title="API TableWriter" href="http://ralph-schuster.eu/projects/csv/csv-current/doc/api/csv/TableWriter.html" target="_blank">TableWriter</a> interface</li>
<li>Introduction of Excel implementation</li>
<li>Aligning CSV and Excel implementations to these interfaces</li>
<li>Introduction of a <a title="API CSVFactory" href="http://ralph-schuster.eu/projects/csv/csv-current/doc/api/csv/CSVFactory.html" target="_blank">Factory</a> class in order to select correct implementation (CSV or Excel)</li>
</ul>
<p>The Beta version still requires some work in terms of documentation and code beautifying. However, the CSV part is already frozen and you can use it to upgrade your existing projects to the new utility version. The Excel part still faces some changes while improving usability.</p>
<p>Please be aware also that Java package structure needed to be changed to integrate the new classes and interfaces. Additionally, new 3rd party libraries were integrated (<a title="Apache POI" href="http://poi.apache.org/" target="_blank">Apache POI</a> and <a title="JavaBeans Activation API" href="http://java.sun.com/javase/7/docs/api/javax/activation/package-summary.html" target="_blank">JavaBeans Activation</a>).</p>
<p><a title="Download CSV 2.0 Beta" href="http://ralph-schuster.eu/projects/csv/csv-2.0beta2.tar.gz">Download</a> the Beta Version or browse the existing <a title="API CSV V2.0 Beta" href="http://ralph-schuster.eu/projects/csv/csv-2.0beta2/doc/api/" target="_blank">API Documentation</a>. Bugs and/or enhancements can be requested via <a title="Bugzilla" href="http://bugzilla.ralph-schuster.eu/bugzilla/" target="_blank">Bugzilla</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://techblog.ralph-schuster.eu/2009/11/26/csv-utility-package-2-0-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSV Utility Package V1.0.2 released</title>
		<link>http://techblog.ralph-schuster.eu/2009/10/20/csv-utility-package-v1-0-2-released/</link>
		<comments>http://techblog.ralph-schuster.eu/2009/10/20/csv-utility-package-v1-0-2-released/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 08:37:43 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[CSV]]></category>

		<guid isPermaLink="false">http://techblog.ralph-schuster.eu/?p=143</guid>
		<description><![CDATA[I made some fixes and enhancements to the CSV Utility Package: Bug #9: Spaces before and after a value are treated correctly now Enhancement #10: CSVReader forwards comment lines to callback objects Enhancement #11: A test script was integrated to check major features New Class: CSVUtils offers methods for copying JDBC results and JTable data [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechblog.ralph-schuster.eu%2F2009%2F10%2F20%2Fcsv-utility-package-v1-0-2-released%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechblog.ralph-schuster.eu%2F2009%2F10%2F20%2Fcsv-utility-package-v1-0-2-released%2F&amp;source=TechnicalG&amp;style=compact&amp;hashtags=CSV&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I made some fixes and enhancements to the <a title="CSV Utility Package" href="http://techblog.ralph-schuster.eu/csv-utility-package-for-java/" target="_self">CSV Utility Package</a>:</p>
<ul>
<li>Bug #9: Spaces before and after a value are treated correctly now</li>
<li>Enhancement #10: CSVReader forwards comment lines to callback objects</li>
<li>Enhancement #11: A test script was integrated to check major features</li>
<li>New Class: CSVUtils offers methods for copying JDBC results and JTable data to CSVWriters</li>
</ul>
<p>You can download the latest release <a title="Latest Release" href="http://www.ralph-schuster.eu/projects/csv/csv-current.tar.gz" target="_self">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://techblog.ralph-schuster.eu/2009/10/20/csv-utility-package-v1-0-2-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSV Utility Package V1.0.1 released</title>
		<link>http://techblog.ralph-schuster.eu/2009/09/28/csv-utility-package-v1-0-1-released/</link>
		<comments>http://techblog.ralph-schuster.eu/2009/09/28/csv-utility-package-v1-0-1-released/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 15:38:19 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[CSV]]></category>

		<guid isPermaLink="false">http://techblog.ralph-schuster.eu/?p=139</guid>
		<description><![CDATA[A new update of my CSV Utility Package was released. It contains some fixes and enhancements: Build system creates tar archive Fixed Bug #2: NullPointerException in CSVReader class Fixed Bug #4: Multiline values fail when a line looks like a comment Enhancement #7: Excel Fix: first column of first row must not start with &#8220;ID&#8221; [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechblog.ralph-schuster.eu%2F2009%2F09%2F28%2Fcsv-utility-package-v1-0-1-released%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechblog.ralph-schuster.eu%2F2009%2F09%2F28%2Fcsv-utility-package-v1-0-1-released%2F&amp;source=TechnicalG&amp;style=compact&amp;hashtags=CSV&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>A new update of my <a title="CSV Utility Package" href="http://techblog.ralph-schuster.eu/csv-utility-package-for-java/" target="_self">CSV Utility Package</a> was released. It contains some fixes and enhancements:</p>
<ul>
<li>Build system creates tar archive</li>
<li> Fixed Bug #2: NullPointerException in CSVReader class</li>
<li> Fixed Bug #4: Multiline values fail when a line looks like a comment</li>
<li> Enhancement #7: Excel Fix: first column of first row must not start with &#8220;ID&#8221;</li>
<li>Enhancement #8: Add row and column count</li>
</ul>
<p>You can download the latest release <a title="Latest Release" href="http://www.ralph-schuster.eu/projects/csv/csv-current.tar.gz" target="_self">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://techblog.ralph-schuster.eu/2009/09/28/csv-utility-package-v1-0-1-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSV Utility Package Released</title>
		<link>http://techblog.ralph-schuster.eu/2008/08/16/csv-utility-package-released/</link>
		<comments>http://techblog.ralph-schuster.eu/2008/08/16/csv-utility-package-released/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 17:22:40 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
				<category><![CDATA[CSV]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://techblog.ralph-schuster.eu/?p=37</guid>
		<description><![CDATA[I decided recently to publish my very simple utility classes for reading and writing CSV files. The main project page is now available. The package, published under the GNU Lesser General Public License, allows you to easily integrate CSV functionality into your application. The utilities can be configured to use different column delimiter and separator [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechblog.ralph-schuster.eu%2F2008%2F08%2F16%2Fcsv-utility-package-released%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechblog.ralph-schuster.eu%2F2008%2F08%2F16%2Fcsv-utility-package-released%2F&amp;source=TechnicalG&amp;style=compact&amp;hashtags=Open+Source&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I decided recently to publish my very simple utility classes for reading and writing CSV files. The main <a title="CSV Utility Package" href="http://techblog.ralph-schuster.eu/csv-utility-package-for-java/" target="_self">project page</a> is now available. The package, published under the <a title="GNU Lesser General Public License 3.0" href="http://www.gnu.org/licenses/lgpl-3.0.html" target="_blank">GNU Lesser General Public License</a>, allows you to easily integrate CSV functionality into your application. The utilities can be configured to use different column delimiter and separator characters in case you need to adopt some other versions of CSV. The default configuration conforms to the Excel style of CSV.</p>
<p>Since this CSV package uses streams, you are able to read from any stream. And, of course, you can write to any stream. You could even synchronize in your application by applying the <a title="Synchronizing Reader and Writer Threads" href="http://techblog.ralph-schuster.eu/2008/08/09/synchronizing-reader-and-writer-threads/" target="_self">reader/writer synchronization</a> described in one of my artices.</p>
<p>You can <a title="Latest Stable Release" href="http://www.ralph-schuster.eu/projects/csv/csv-current.tar.gz" target="_self">download</a> the latest stable release at the <a title="CSV Utility Package" href="http://techblog.ralph-schuster.eu/csv-utility-package-for-java/" target="_self">main project page</a>.</p>
<p>Here is a short example on reading a CSV file using the <a title="CSVReader API Documentation" href="http://ralph-schuster.eu/projects/csv/csv-current/doc/api/csv/CSVReader.html" target="_blank">CSVReader</a> class:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">java.<span style="color: #006633;">io</span>.<span style="color: #003399;">File</span> f <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> java.<span style="color: #006633;">io</span>.<span style="color: #003399;">File</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;csv-test.csv&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
csv.<span style="color: #006633;">CSVReader</span> in <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> csv.<span style="color: #006633;">CSVReader</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> java.<span style="color: #006633;">io</span>.<span style="color: #003399;">FileReader</span><span style="color: #009900;">&#40;</span>f<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>in.<span style="color: #006633;">hasNext</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003399;">String</span> columns<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> in.<span style="color: #006633;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #666666; font-style: italic;">// Do something here</span>
<span style="color: #009900;">&#125;</span>
in.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Please note that the CSVReader class actually implements the Iterator interface.</p>
<p>Writing a CSV file is even easier. Just create an instance of the <a title="CSVWriter API Documentation" href="http://ralph-schuster.eu/projects/csv/csv-current/doc/api/csv/CSVWriter.html" target="_blank">CSVWriter</a> class and pass it your rows:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">java.<span style="color: #006633;">io</span>.<span style="color: #003399;">File</span> f <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> java.<span style="color: #006633;">io</span>.<span style="color: #003399;">File</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;csv-test.csv&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
CSVWriter out <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> CSVWriter<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> java.<span style="color: #006633;">io</span>.<span style="color: #003399;">FileWriter</span><span style="color: #009900;">&#40;</span>f<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
out.<span style="color: #006633;">printRow</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#123;</span> <span style="color: #0000ff;">&quot;0:0&quot;</span>, <span style="color: #0000ff;">&quot;0:1&quot;</span>, <span style="color: #0000ff;">&quot;0:2&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
out.<span style="color: #006633;">printRow</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#123;</span> <span style="color: #0000ff;">&quot;1:0&quot;</span>, <span style="color: #0000ff;">&quot;1:1&quot;</span>, <span style="color: #0000ff;">&quot;1:2&quot;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
out.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h2>Documentation</h2>
<p>The <a title="Current API Documentation" href="http://ralph-schuster.eu/projects/csv/csv-current/doc/api/index.html" target="_blank">API documentation</a> tells you all details and configuration parameters that you can use to control the behaviour of the reader and writer classes.</p>
]]></content:encoded>
			<wfw:commentRss>http://techblog.ralph-schuster.eu/2008/08/16/csv-utility-package-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

