public abstract class SaxUtils extends Object
Constructor and Description |
---|
SaxUtils() |
Modifier and Type | Method and Description |
---|---|
static InputSource |
createInputSource(org.springframework.core.io.Resource resource)
Creates a SAX
InputSource from the given resource. |
static String |
getSystemId(org.springframework.core.io.Resource resource)
Retrieves the URL from the given resource as System ID.
|
public static InputSource createInputSource(org.springframework.core.io.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)
public static String getSystemId(org.springframework.core.io.Resource resource)
null
if it cannot be opened.Copyright © 2020 Pivotal Software. All rights reserved.