Package org.openjdk.jmh.results.format
Class ResultFormatFactory
- java.lang.Object
-
- org.openjdk.jmh.results.format.ResultFormatFactory
-
public class ResultFormatFactory extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResultFormat
getInstance(ResultFormatType type, PrintStream out)
Get the instance of ResultFormat of given type which write the result to out.static ResultFormat
getInstance(ResultFormatType type, String file)
Get the instance of ResultFormat of given type which writes the result to file
-
-
-
Method Detail
-
getInstance
public static ResultFormat getInstance(ResultFormatType type, String file)
Get the instance of ResultFormat of given type which writes the result to file- Parameters:
type
- result format typefile
- target file- Returns:
- result format
-
getInstance
public static ResultFormat getInstance(ResultFormatType type, PrintStream out)
Get the instance of ResultFormat of given type which write the result to out. It is a user responsibility to initialize and finish the out as appropriate.- Parameters:
type
- result format typeout
- target out- Returns:
- result format.
-
-