public abstract class SaxUtils extends Object
| Constructor and Description |
|---|
SaxUtils() |
| Modifier and Type | Method and Description |
|---|---|
static InputSource |
createInputSource(Resource resource)
Creates a SAX
InputSource from the given resource. |
static String |
getSystemId(Resource resource)
Retrieves the URL from the given resource as System ID.
|
public static InputSource createInputSource(Resource resource) throws IOException
InputSource from the given resource. Sets the system identifier to the resource's
URL, if available.resource - the resourceIOException - if an I/O exception occursInputSource.setSystemId(String),
getSystemId(org.springframework.core.io.Resource)