spring-framework / org.springframework.oxm.support / SaxResourceUtils / createInputSource

createInputSource

open static fun createInputSource(resource: Resource): InputSource

Create a SAX InputSource from the given resource.

Sets the system identifier to the resource's URL, if available.

Parameters

resource - the resource

Exceptions

IOException - if an I/O exception occurs

Return
the input source created from the resource

See Also
InputSource#setSystemId(String)#getSystemId(org.springframework.core.io.Resource)