public abstract class SaxResourceUtils
extends java.lang.Object
Constructor and Description |
---|
SaxResourceUtils() |
Modifier and Type | Method and Description |
---|---|
static org.xml.sax.InputSource |
createInputSource(Resource resource)
Create a SAX
InputSource from the given resource. |
public static org.xml.sax.InputSource createInputSource(Resource resource) throws java.io.IOException
InputSource
from the given resource.
Sets the system identifier to the resource's URL
, if available.
resource
- the resourcejava.io.IOException
- if an I/O exception occursInputSource.setSystemId(String)
,
getSystemId(org.springframework.core.io.Resource)