Class AbstractWriter<T>
java.lang.Object
com.bluebell.greenhouse.sol.writers.AbstractWriter<T>
- Type Parameters:
T- entity type to write
- Direct Known Subclasses:
CsvMarketPriceWriter, CsvPositionWriter, CsvTransactionWriter
Parent-level writer containing re-usable logic.
- Version:
- 1.0.9
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected voidwriteDelimitedString(List<T> entities, String delimiter, Map<String, Function<T, ?>> headers, Appendable writer)
-
Constructor Details
-
AbstractWriter
public AbstractWriter()
-
-
Method Details
-
writeDelimitedString
-
writeDelimitedString
protected void writeDelimitedString(List<T> entities, String delimiter, Map<String, Function<T, ?>> headers, Appendable writer) throws IOException- Parameters:
entities-ListofTs to be writtendelimiter- delimiterheaders- mapping of header names to functions for extracting values fromTwriter- destination writer- Throws:
IOException- io exception while writing
-