spring-framework / org.springframework.util.xml / XmlValidationModeDetector / detectValidationMode

detectValidationMode

open fun detectValidationMode(inputStream: InputStream): Int

Detect the validation mode for the XML document in the supplied InputStream. Note that the supplied InputStream is closed by this method before returning.

Parameters

inputStream - the InputStream to parse

Exceptions

IOException - in case of I/O failure

See Also
#VALIDATION_DTD#VALIDATION_XSD