|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.oxm.support.SaxResourceUtils
public abstract class SaxResourceUtils
Convenient utility methods for dealing with SAX.
Constructor Summary | |
---|---|
SaxResourceUtils()
|
Method Summary | |
---|---|
static org.xml.sax.InputSource |
createInputSource(Resource resource)
Create a SAX InputSource from the given resource. |
private static java.lang.String |
getSystemId(Resource resource)
Retrieve the URL from the given resource as System ID. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SaxResourceUtils()
Method Detail |
---|
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 resource
java.io.IOException
- if an I/O exception occursInputSource.setSystemId(String)
,
getSystemId(org.springframework.core.io.Resource)
private static java.lang.String getSystemId(Resource resource)
Returns null
if it cannot be opened.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |