org.springframework.xml.sax
Class SaxUtils
java.lang.Object
org.springframework.xml.sax.SaxUtils
public abstract class SaxUtils
- extends Object
Convenient utility methods for dealing with SAX.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SaxUtils
public SaxUtils()
createInputSource
public static InputSource createInputSource(Resource resource)
throws IOException
- Creates a SAX
InputSource
from the given resource. Sets the system identifier to the resource's
URL
, if available.
- Parameters:
resource
- the resource
- Returns:
- the input source created from the resource
- Throws:
IOException
- if an I/O exception occurs- See Also:
InputSource.setSystemId(String)
,
getSystemId(org.springframework.core.io.Resource)
getSystemId
public static String getSystemId(Resource resource)
- Retrieves the URL from the given resource as System ID. Returns
null
if it cannot be opened.
Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.