org.springframework.util.xml
Class XmlValidationModeDetector
java.lang.Object
org.springframework.util.xml.XmlValidationModeDetector
public class XmlValidationModeDetector
- extends Object
Detects whether an XML stream is using DTD- or XSD-based validation.
- Author:
- Rob Harrop
Field Summary |
static int |
VALIDATION_DTD
Indicates that DTD validation should be used. |
static int |
VALIDATION_XSD
Indicates that XSD validation should be used. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VALIDATION_DTD
public static final int VALIDATION_DTD
- Indicates that DTD validation should be used.
- See Also:
- Constant Field Values
VALIDATION_XSD
public static final int VALIDATION_XSD
- Indicates that XSD validation should be used.
- See Also:
- Constant Field Values
XmlValidationModeDetector
public XmlValidationModeDetector()
detectValidationMode
public int detectValidationMode(InputStream inputStream)
throws IOException
- Detects the validation mode for the XML document in the supplied
InputStream
.
Note that the supplied InputStream
is closed by this method before returning.
- Throws:
IOException
- See Also:
VALIDATION_DTD
,
VALIDATION_XSD
Copyright © 2002-2006 The Spring Framework.