CSVClassNameMappingParser
, CSVFieldNameMappingParser
, CSVMethodNameMappingParser
, CSVParameterNameMappingParser
public abstract class AbstractCSVMappingParser<M> extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
AbstractCSVMappingParser.Builder |
Provides a base to factories which produce arbitrary CSV mapper parsers.
|
static class |
AbstractCSVMappingParser.MemberBuilder |
Provides a base to factories which produce arbitrary CSV mapper parsers for class members
elements.
|
Modifier and Type | Method | Description |
---|---|---|
protected abstract M |
doParse(org.apache.commons.csv.CSVParser parser) |
Parses the contents of a CSV file or stream.
|
M |
parse(InputStream inputStream) |
|
M |
parse(InputStream inputStream,
Charset charset) |
Parses the contents of an arbitrary input stream.
|
M |
parse(Reader reader) |
Parses the contents of an arbitrary reader.
|
M |
parse(Path file) |
|
M |
parse(Path file,
Charset charset) |
Parses the contents of an arbitrary file.
|
protected abstract M doParse(@NonNull org.apache.commons.csv.CSVParser parser) throws IOException
parser
- a CSV parser.IOException
- when parsing fails.@NonNull public M parse(@NonNull Path file, @NonNull Charset charset) throws IOException
file
- a CSV mapping file.charset
- a charset.IOException
- when parsing the mappings fails.@NonNull public M parse(@NonNull InputStream inputStream) throws IOException
IOException
parse(InputStream, Charset)
@NonNull public M parse(@NonNull InputStream inputStream, @NonNull Charset charset) throws IOException
inputStream
- a CSV stream.charset
- a charset.IOException
- when parsing the mappings fails.@NonNull public M parse(@NonNull Reader reader) throws IOException
reader
- a reader.IOException
- when parsing the mappings fails.@NonNull public M parse(@NonNull Path file) throws IOException
IOException
parse(Path, Charset)
Copyright © 2018 Basin. All rights reserved.