Package cdc.issues.core.io
Class WorkbookCheckStatsIo<I>
- java.lang.Object
-
- cdc.issues.core.io.WorkbookCheckStatsIo<I>
-
- Type Parameters:
I- The type of the checked or ignored item.
public class WorkbookCheckStatsIo<I> extends Object
Class used to saveCheckStatsto a Workbook.- Author:
- Damien Carbonne
-
-
Constructor Summary
Constructors Constructor Description WorkbookCheckStatsIo(Function<? super I,String> itemToString)Creates a new instance ofWorkbookCheckStatsIo.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmerge(File output, List<File> inputs)Merges several workbook stats files into one.voidsave(CheckStats<I> stats, File file, cdc.office.ss.WorkbookWriterFeatures features)SaveCheckStatsto a workbook file.
-
-
-
Constructor Detail
-
WorkbookCheckStatsIo
public WorkbookCheckStatsIo(Function<? super I,String> itemToString)
Creates a new instance ofWorkbookCheckStatsIo.- Parameters:
itemToString- The function used to convert an item to a String.
-
-
Method Detail
-
save
public void save(CheckStats<I> stats, File file, cdc.office.ss.WorkbookWriterFeatures features) throws IOException
SaveCheckStatsto a workbook file.- Parameters:
stats- TheCheckStats.file- The workbook file to generate.features- Thefeatures.- Throws:
IOException- When an IO error occurs.
-
merge
public static void merge(File output, List<File> inputs) throws IOException
Merges several workbook stats files into one.- Parameters:
output- The generated file.inputs- The input files.
They should have been generated withsave(CheckStats, File, WorkbookWriterFeatures).- Throws:
IOException- When an IO error occurs.
-
-