public interface DataReader
clazz parameter
Enum as the record fields definition.
The resulting Map has the Enum field name as the
key and the correlated data on the input file as the value.| 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. |
List<Map<String,String>> getDataAsMap(InputStream is, Class<? extends Enum> clazz, String delimiter, boolean hasHeader) throws IOException
java.util.List of
java.util.Map representing all the records in the file.is - 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.