public class ResultFormatterSimple extends AbstractResultFormatter implements ResultFormatter
ResultFormatter
implementation. It prints the timestamp in
[ms], a separator (default: "\t"), the result value, a separator, and the
proxy name on 1 line.
The separator can be configured via AbstractResultFormatter.setSeparator(String)
. Also, it
can be configured via AbstractResultFormatter.setShowProxy(boolean)
if the proxy is shown or
not.
Sample output:
1312456651773 0 tp1 1312456652773 1 tp1 1312456653779 2 tp1 1312456654780 3 tp1 1312456655781 4 tp1 1312456656782 5 tp1 1312456657783 6 tp1 1312456658784 7 tp1 1312456659785 8 tp1 1312456660786 9 tp1
Constructor and Description |
---|
ResultFormatterSimple()
Default contructor.
|
ResultFormatterSimple(String separator)
Constructs a new instance with the given separator.
|
Modifier and Type | Method and Description |
---|---|
String |
format(Result result)
Transforms the result to a String representation.
|
getSeparator, isShowProxy, setSeparator, setShowProxy
public ResultFormatterSimple()
public ResultFormatterSimple(String separator)
separator
- the separator to set.public String format(Result result)
ResultFormatter
format
in interface ResultFormatter
result
- the result to be transformedCopyright (c) Salzburg Research Forschungsgesellschaft mbH. All rights reserved.