if (driver == null) {
if (streamabilityViolationPolicy == XmlViolationPolicy.ALLOW) {
this.saxTreeBuilder = new SAXTreeBuilder();
this.treeBuilder = this.saxTreeBuilder;
this.saxStreamer = null;
this.driver = new Driver(newTokenizer(treeBuilder, true));
} else {
this.saxStreamer = new SAXStreamer();
this.treeBuilder = this.saxStreamer;
this.saxTreeBuilder = null;
this.driver = new Driver(newTokenizer(treeBuilder, false));
}
this.driver.setErrorHandler(errorHandler);
this.driver.setTransitionHandler(transitionHandler);
this.treeBuilder.setErrorHandler(treeBuilderErrorHandler);
this.driver.setCheckingNormalization(checkingNormalization);