|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.xml.sax.SaxUtils
public abstract class SaxUtils
Convenient utility methods for dealing with SAX.
Constructor Summary | |
---|---|
SaxUtils()
|
Method Summary | |
---|---|
static org.xml.sax.InputSource |
createInputSource(org.springframework.core.io.Resource resource)
Creates a SAX InputSource from the given resource. |
static java.lang.String |
getSystemId(org.springframework.core.io.Resource resource)
Retrieves 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 SaxUtils()
Method Detail |
---|
public static org.xml.sax.InputSource createInputSource(org.springframework.core.io.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)
public static java.lang.String getSystemId(org.springframework.core.io.Resource resource)
null
if it cannot be openened.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |