net.sf.clichart.data
Class CsvLineParser

java.lang.Object
  extended by net.sf.clichart.data.CsvLineParser
All Implemented Interfaces:
LineParser

public class CsvLineParser
extends java.lang.Object
implements LineParser

A line parser for CSV data. Should cope with:

Uses the CSV parsing library from javacsv on SourceForge (LGPL). It's a bit inefficient, since that parser expects to have full control of the stream (rather than doing it line-by-line, but it was very efficient in development time :)

Author:
johnd

Constructor Summary
CsvLineParser()
           
 
Method Summary
 java.lang.String[] parseLine(java.lang.String line, int lineNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsvLineParser

public CsvLineParser()
Method Detail

parseLine

public java.lang.String[] parseLine(java.lang.String line,
                                    int lineNumber)
                             throws InvalidDataException
Specified by:
parseLine in interface LineParser
Throws:
InvalidDataException