microsoft.exchange.webservices.data.security
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SafeXmlSchema
public SafeXmlSchema()
newValidator
public Validator newValidator()
- Specified by:
newValidator in class Schema
newValidatorHandler
public ValidatorHandler newValidatorHandler()
- Specified by:
newValidatorHandler in class Schema
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
Copyright © 2012–2015 Microsoft. All rights reserved.