java.lang.Object | |
↳ | org.springframework.util.xml.XmlValidationModeDetector |
Detects whether an XML stream is using DTD- or XSD-based validation.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | VALIDATION_AUTO | Indicates that the validation mode should be auto-guessed, since we cannot find a clear indication (probably choked on some special characters, or the like). | |||||||||
int | VALIDATION_DTD | Indicates that DTD validation should be used (we found a "DOCTYPE" declaration). | |||||||||
int | VALIDATION_NONE | Indicates that the validation should be disabled. | |||||||||
int | VALIDATION_XSD | Indicates that XSD validation should be used (found no "DOCTYPE" declaration). |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Detect the validation mode for the XML document in the supplied
InputStream . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Indicates that the validation mode should be auto-guessed, since we cannot find a clear indication (probably choked on some special characters, or the like).
Indicates that DTD validation should be used (we found a "DOCTYPE" declaration).
Indicates that the validation should be disabled.
Indicates that XSD validation should be used (found no "DOCTYPE" declaration).
Detect the validation mode for the XML document in the supplied InputStream
.
Note that the supplied InputStream
is closed by this method before returning.
inputStream | the InputStream to parse |
---|
IOException | in case of I/O failure |
---|