Class SafeXmlSchema
- java.lang.Object
-
- javax.xml.validation.Schema
-
- microsoft.exchange.webservices.data.security.SafeXmlSchema
-
public class SafeXmlSchema extends Schema
XmlSchema with protection against DTD parsing in read overloads
-
-
Constructor Summary
Constructors Constructor Description SafeXmlSchema()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidatornewValidator()ValidatorHandlernewValidatorHandler()static Schemaread(InputStream stream)Reads an XML Schema from the supplied stream.static Schemaread(XMLStreamReader reader)Reads an XML Schema from the supplied TextReader.
-
-
-
Constructor Detail
-
SafeXmlSchema
public SafeXmlSchema()
-
-
Method Detail
-
newValidator
public Validator newValidator()
- Specified by:
newValidatorin classSchema
-
newValidatorHandler
public ValidatorHandler newValidatorHandler()
- Specified by:
newValidatorHandlerin classSchema
-
read
public static Schema read(InputStream stream) throws XMLStreamException
Reads an XML Schema from the supplied stream.- Parameters:
stream- The supplied data stream.- Returns:
- The XmlSchema object representing the XML Schema.
- Throws:
XMLStreamException
-
read
public static Schema read(XMLStreamReader reader) throws XMLStreamException
Reads an XML Schema from the supplied TextReader.- Parameters:
reader- The TextReader containing the XML Schema to read- Returns:
- The XmlSchema object representing the XML Schema.
- Throws:
XMLStreamException
-
-