| java.lang.Object com.sosnoski.xmlbench.BenchBase com.sosnoski.xmlbench.BenchDocBase com.sosnoski.xmlbench.BenchDOM com.sosnoski.xmlbench.BenchXerces2
All known Subclasses: com.sosnoski.xmlbench.BenchXerces2Base, com.sosnoski.xmlbench.BenchXerces2Deferred,
BenchXerces2 | abstract public class BenchXerces2 extends BenchDOM (Code) | | Abstract base class for benchmarks measuring performance of the Xerces2 DOM
document representation. This base class implementation can be customized
by subclasses to experiment with options for the representation, in
particular for trying the deferred node expansion feature of Xerces. The
code used for Xerces2 DOM is identical to that used for Xerces1, but is
compiled with a different classpath.
author: Dennis M. Sosnoski version: 1.2 |
BenchXerces2 | protected BenchXerces2(String config, boolean defer)(Code) | | Constructor.
Parameters: config - test configuration name Parameters: defer - defer node expansion flag |
build | protected Object build(InputStream in)(Code) | | Build document representation by parsing XML. This implementation
creates a DOM parser if one does not already exist, then reuses
that parser 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 Xerces 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 parser used
within a test pass.
|
setDeferExpansion | protected void setDeferExpansion(boolean defer)(Code) | | Set deferred node expansion mode.
Parameters: defer - defer node expansion flag |
|
|