| Constructor and Description |
|---|
CSVParser(com.google.common.base.Optional<String> listDelimiter) |
CSVParser(com.google.common.base.Optional<String> listDelimiter,
Iterable<String> fieldNames) |
CSVParser(com.google.common.base.Optional<String> listDelimiter,
String header) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getFieldNames()
Returns the fieldNames that we expect to see in parsed Maps, if known, or null otherwise.
|
String |
getListDelimiter() |
Map<String,Object> |
parse(String input)
Parse a String into a Map.
|
void |
setFieldNames(Iterable<String> fieldNames)
Set the fieldNames that you expect to see in parsed Maps.
|
void |
setFieldNames(String header) |
public CSVParser(com.google.common.base.Optional<String> listDelimiter)
public CSVParser(com.google.common.base.Optional<String> listDelimiter, Iterable<String> fieldNames)
public String getListDelimiter()
public List<String> getFieldNames()
ParsergetFieldNames in interface Parser<String,Object>public void setFieldNames(Iterable<String> fieldNames)
ParsersetFieldNames in interface Parser<String,Object>public void setFieldNames(String header)
Copyright © 2011–2017. All rights reserved.