Class StandardXmlFactory
java.lang.Object
org.apache.rat.utils.StandardXmlFactory
Factory to create standard XML objects. The intention of this class is to resolve in a consistent manner the
XXE errors and similar XML IO errors.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Transformercreate()Create a transformer with no stylesheet.static Transformercreate(InputStream styleIn) Create a transformer with the specified stylesheet.
-
Method Details
-
create
Create a transformer with no stylesheet.- Returns:
- the transformer.
- Throws:
TransformerConfigurationException- on error.
-
create
Create a transformer with the specified stylesheet.- Parameters:
styleIn- the stylesheet to use.- Returns:
- the transformer.
- Throws:
TransformerConfigurationException- on error.
-