|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Class Summary | |
|---|---|
| CharBuffer | A simple StringBuffer replacement that aims to reduce copying as much as possible. |
| CSVParser | Parses CSV files according to the specified configuration. |
| CSVParser.Token | Token is an internal token representation. |
| CSVPrinter | Print values as a comma separated list. |
| CSVStrategy | CSVStrategy Represents the strategy for a CSV. |
| CSVUtils | Utility methods for dealing with CSV files |
| ExtendedBufferedReader | ExtendedBufferedReader A special reader decorater which supports more sophisticated access to the underlying reader object. |
CSV (or its dialects) are widely used as interfaces to legacy systems or manual data-imports. Basically CSV stands for "Comma Separated Values" but this simple abbreviation leads to more confusion than definitions.
Common to all file dialects is its basic structure: The CSV data-format is record oriented, whereas each record starts on a new textual line. A record is build of a list of values. Keep in mind that not all records must have an equal number of values:
csv := records*
record := values*
The following list contains the csv aspects the WAKE CSV parser supports:
In addition to individually defined dialects, two predefined dialects (strict-csv, and excel-csv) can be set directly.
Example usage:
String[] parsedLine = CSVParser.parseLine("a,b,c");
for (int i = 0; i < parsedLine.length; ++i) {
System.out.println("value " + i + "=" + parsedLine[i]);
}
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||