public class SafeXmlUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static javax.xml.parsers.DocumentBuilder |
documentBuilder()
Safe DOM parsing, with default parameters
|
static javax.xml.parsers.DocumentBuilder |
documentBuilder(boolean namespaceAware)
Safe DOM parsing
|
static javax.xml.stream.XMLInputFactory |
inputFactory()
Safe StAX parser
|
static org.xml.sax.XMLReader |
reader()
Safe SAX parser, with default parameters
|
static org.xml.sax.XMLReader |
reader(boolean namespaceAware,
javax.xml.validation.Schema schema)
Safe SAX parser
|
static javax.xml.validation.SchemaFactory |
schemaFactory()
Safe schema factory
|
static javax.xml.transform.Transformer |
transformer()
Safe transformer
|
static javax.xml.validation.Validator |
validator(javax.xml.validation.Schema schema)
Safe schema validator
|
public static javax.xml.parsers.DocumentBuilder documentBuilder()
ProwideException
- if the parser cannot be configureddocumentBuilder(boolean)
public static javax.xml.parsers.DocumentBuilder documentBuilder(boolean namespaceAware)
namespaceAware
- factory awarenessProwideException
- if the parser cannot be configuredpublic static org.xml.sax.XMLReader reader() throws ProwideException
ProwideException
- if the parser cannot be configuredreader(boolean, Schema)
public static org.xml.sax.XMLReader reader(boolean namespaceAware, javax.xml.validation.Schema schema) throws ProwideException
namespaceAware
- SAX factory awarenessschema
- optional schema if the reader will be used for validaiton, null to ignoreProwideException
- if the parser cannot be configuredpublic static javax.xml.stream.XMLInputFactory inputFactory()
ProwideException
- if the parser cannot be configuredpublic static javax.xml.transform.Transformer transformer()
public static javax.xml.validation.SchemaFactory schemaFactory()
public static javax.xml.validation.Validator validator(javax.xml.validation.Schema schema)