public class CSVReader extends Object implements AutoCloseable
| Constructor and Description |
|---|
CSVReader(InputStream stream) |
CSVReader(InputStream stream,
boolean useHeaders) |
CSVReader(Reader reader) |
CSVReader(Reader reader,
boolean useHeaders) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getField(String header,
String[] fields) |
String[] |
getHeaders() |
String[] |
readLine() |
CSVReader |
setTrimFields(boolean trimFields) |
public CSVReader(InputStream stream) throws IOException, CSVParseException
IOExceptionCSVParseExceptionpublic CSVReader(InputStream stream, boolean useHeaders) throws IOException, CSVParseException
IOExceptionCSVParseExceptionpublic CSVReader(Reader reader) throws IOException, CSVParseException
IOExceptionCSVParseExceptionpublic CSVReader(Reader reader, boolean useHeaders) throws IOException, CSVParseException
IOExceptionCSVParseExceptionpublic CSVReader setTrimFields(boolean trimFields)
public String[] getHeaders()
public String[] readLine() throws IOException, CSVParseException
IOExceptionCSVParseExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOExceptionCopyright © 2020. All rights reserved.