com.carrotsearch.junitbenchmarks
Class XMLConsumer
java.lang.Object
com.carrotsearch.junitbenchmarks.AutocloseConsumer
com.carrotsearch.junitbenchmarks.XMLConsumer
- All Implemented Interfaces:
- IResultsConsumer, Closeable
public final class XMLConsumer
- extends AutocloseConsumer
- implements Closeable
IResultsConsumer
that writes XML files for each benchmark.
Method Summary |
void |
accept(Result result)
Accept a single benchmark result. |
void |
close()
Close the output XML stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TIMESTAMP_FORMAT
public static final String TIMESTAMP_FORMAT
- Timestamp format.
- See Also:
- Constant Field Values
XMLConsumer
public XMLConsumer()
throws IOException
- Instantiate from global options.
- Throws:
IOException
XMLConsumer
public XMLConsumer(File fileName)
throws IOException
- Throws:
IOException
accept
public void accept(Result result)
throws IOException
- Accept a single benchmark result.
- Specified by:
accept
in interface IResultsConsumer
- Throws:
IOException
close
public void close()
- Close the output XML stream.
- Specified by:
close
in interface Closeable
Copyright © 2011 Carrot Search s.c.. All Rights Reserved.