microsoft.exchange.webservices.data.security
Class SafeXmlSchema

java.lang.Object
  extended by javax.xml.validation.Schema
      extended by microsoft.exchange.webservices.data.security.SafeXmlSchema

public class SafeXmlSchema
extends Schema

XmlSchema with protection against DTD parsing in read overloads


Constructor Summary
SafeXmlSchema()
           
 
Method Summary
 Validator newValidator()
           
 ValidatorHandler newValidatorHandler()
           
static Schema read(InputStream stream)
          Reads an XML Schema from the supplied stream.
static Schema read(XMLStreamReader reader)
          Reads an XML Schema from the supplied TextReader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SafeXmlSchema

public SafeXmlSchema()
Method Detail

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.