Package com.opengamma.strata.loader.csv
Class TradeCsvWriter
- java.lang.Object
-
- com.opengamma.strata.loader.csv.TradeCsvWriter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TradeCsvWriter
of(TradeCsvInfoSupplier supplier)
Obtains an instance that uses the specified supplier for additional information.static TradeCsvWriter
standard()
Obtains an instance that uses the standard set of reference data.void
write(List<? extends Trade> trades, Appendable output)
Write trades to an appendable in the applicable full details trade format.
-
-
-
Method Detail
-
standard
public static TradeCsvWriter standard()
Obtains an instance that uses the standard set of reference data.- Returns:
- the loader
-
of
public static TradeCsvWriter of(TradeCsvInfoSupplier supplier)
Obtains an instance that uses the specified supplier for additional information.- Parameters:
supplier
- the supplier used to extract additional information to output- Returns:
- the loader
-
write
public void write(List<? extends Trade> trades, Appendable output)
Write trades to an appendable in the applicable full details trade format.The output is written in full details trade format.
- Parameters:
trades
- the trades to writeoutput
- the appendable to write to- Throws:
IllegalArgumentException
- if the metadata does not contain tenorsUncheckedIOException
- if an IO error occurs
-
-