Package org.openjdk.jmh.results.format
Class ResultFormatFactory
java.lang.Object
org.openjdk.jmh.results.format.ResultFormatFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
Constructor Details
-
ResultFormatFactory
private ResultFormatFactory()
-
-
Method Details
-
getInstance
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
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.
-