Package org.dbunit.dataset.csv
Interface CsvParser
- All Known Implementing Classes:
CsvParserImpl
public interface CsvParser
Parses a line of CSV text into its individual field values.
- Since:
- 2.2 (Sep 12, 2004)
- Version:
- $Revision$ $Date$
- Author:
- fede, Last changed by: $Author$
-
Method Summary
-
Method Details
-
parse
Parses the CSV content of the given file.- Parameters:
file- the file to parse.- Returns:
- the parsed rows, each a list of field values, first row being the column names.
- Throws:
IOException- if the file cannot be read.CsvParserException- if the CSV content is malformed.
-
parse
Parses the CSV content at the given URL.- Parameters:
url- the URL to parse.- Returns:
- the parsed rows, each a list of field values, first row being the column names.
- Throws:
IOException- if the URL cannot be read.CsvParserException- if the CSV content is malformed.
-
parse
Parses a single line of CSV text into its individual field values.- Parameters:
csv- the line of CSV text to parse.- Returns:
- the parsed field values.
- Throws:
PipelineException- if the character-handling pipeline fails.IllegalInputCharacterException- if the input contains a character no handler accepts.
-