public class SimpleDelimitedFileDataReader extends Object implements DataReader
| Modifier and Type | Method and Description |
|---|---|
List<Map<String,String>> |
getDataAsMap(InputStream is,
Class<? extends Enum> clazz,
String delimiter,
boolean hasHeader)
Reads the data as a
java.util.List of
java.util.Map representing all the records in the file. |
static DataReader |
getInstance() |
public static DataReader getInstance()
public List<Map<String,String>> getDataAsMap(InputStream is, Class<? extends Enum> clazz, String delimiter, boolean hasHeader) throws IOException
DataReaderjava.util.List of
java.util.Map representing all the records in the file.getDataAsMap in interface DataReaderis - the input streamclazz - Enum with record descriptiondelimiter - the field delimiter characterhasHeader - header indicator flagMap.IOException - if something went wrongCopyright © 2015 Omnia Consulting. All rights reserved.