public class ResourceReader extends Object
Constructor and Description |
---|
ResourceReader(BiConsumer<List<String>,List<Object>> consumer)
Ctor
|
Modifier and Type | Method and Description |
---|---|
ResourceReader |
parseCsv(List<String> columnNames,
String csv) |
ResourceReader |
parseCsv(List<String> columnNames,
String csv,
char separator) |
ResourceReader |
parseJson(String content)
Parse a Json resource.
|
public ResourceReader(BiConsumer<List<String>,List<Object>> consumer)
consumer
- your streaming consumer.public ResourceReader parseJson(String content)
content
- your input json stringpublic ResourceReader parseCsv(List<String> columnNames, String csv)
public ResourceReader parseCsv(List<String> columnNames, String csv, char separator)
Copyright © 2014–2022. All rights reserved.