handler_ = factory.newTransformerHandler();
}
catch (TransformerConfigurationException e) {
- throw new RuntimeException("XML/SAX transformer configuration error");
+ throw new AssertionError("XML/SAX transformer configuration error");
}
catch (TransformerFactoryConfigurationError e) {
- throw new RuntimeException("XML/SAX transformer factory configuration error");
+ throw new AssertionError("XML/SAX transformer factory configuration error");
}
Transformer tf = handler_.getTransformer();
tf.setOutputProperty(OutputKeys.ENCODING,encoding);