TSVParser is used to parse a stream with tab-separated values and
generate ParameterParser objects which can be used to
extract the values in the desired type.
The class extends the abstract class DataStreamParser and implements
initTokenizer with suitable values for TSV files to provide this
functionality.
The class (indirectly through DataStreamParser) implements the
java.util.Iterator interface for convenience.
This allows simple use in a Velocity template for example:
#foreach ($row in $tsvfile)
Name: $row.Name
Description: $row.Description
#end
author: Sean Legassick author: Martin van den Bemt version: $Id: TSVParser.java 534527 2007-05-02 16:10:59Z tv $ |