public interface FieldParser
A parser for fields.
| Modifier and Type | Method and Description | 
|---|---|
List<Field> | 
parseFieldsAsList(DataSource source,
                 Context context)
 Parses fields from the specified source. 
 | 
Map<String,Field> | 
parseFieldsAsMap(DataSource source,
                Context context)
 Parses fields from the specified source. 
 | 
Map<String,Field> parseFieldsAsMap(DataSource source, Context context) throws IOException, ParseException
Parses fields from the specified source.
The key of the returned map is the field name in lower-case.
 If a field with the same name occurs twice or more a
 ParseException is thrown.
 
Empty fields as well as nameless fields are ignored and never returned.
source - The source.context - The context.IllegalArgumentException - If any of the parameters are null.IOException - If an I/O error occurs.ParseException - If an error occurs during the parsing.List<Field> parseFieldsAsList(DataSource source, Context context) throws IOException, ParseException
Parses fields from the specified source.
 Empty fields are returned based on the configuration of the
 FieldParser implementation.
 
source - The source.context - The context.IllegalArgumentException - If any of the parameters are null.IOException - If an I/O error occurs.ParseException - If an error occurs during the parsing.Copyright © 2015–2019. All rights reserved.