public class CsvSample extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CsvSample.MyBean |
| Constructor and Description |
|---|
CsvSample() |
| Modifier and Type | Method and Description |
|---|---|
void |
doSample() |
static void |
main(String[] args) |
protected void |
testMappingStrategyRead(String originalCommentText)
This approach seems to fail with embedded newlines; that might be a weakness of
the mapping strategy support classes.
|
protected void |
testRawCsvRead(String originalCommentText)
This approach seems to work correctly, even with embedded newlines.
|
protected void testRawCsvRead(String originalCommentText) throws IOException, com.opencsv.exceptions.CsvValidationException
originalCommentText - No ideaIOException - But not reallycom.opencsv.exceptions.CsvValidationExceptionprotected void testMappingStrategyRead(String originalCommentText) throws FileNotFoundException
originalCommentText - No ideaFileNotFoundException - But not reallyCopyright © 2005–2025. All rights reserved.