| java.lang.Object com.sosnoski.xmlbench.BenchBase com.sosnoski.xmlbench.BenchDocBase com.sosnoski.xmlbench.BenchDOM com.sosnoski.xmlbench.BenchCrimson
BenchCrimson | public class BenchCrimson extends BenchDOM (Code) | | Benchmark for measuring performance of the Apache Crimson DOM document
representation. Since we may have several parsers and document models in
the classpath, this creates the Crimson parser directly in order to avoid
any confusion in going through JAXP.
author: Dennis M. Sosnoski version: 1.2 |
BenchCrimson | public BenchCrimson()(Code) | | Constructor.
|
build | protected Object build(InputStream in)(Code) | | Build document representation by parsing XML. This implementation
creates a document builder if one does not already exist, then reuses
that builder for the duration of a test run..
Parameters: in - XML document input stream document representation |
output | protected void output(Object doc, OutputStream out)(Code) | | Output a document as XML text. This method uses the method defined
by the Crimson DOM to output a text representation of the document.
Parameters: doc - document representation to be output Parameters: out - XML document output stream |
reset | protected void reset()(Code) | | Reset test class instance. This discards the document builder used
within a test pass.
|
|
|