类 SaxResourceUtils
- java.lang.Object
- org.springframework.oxm.support.SaxResourceUtils
public abstract class SaxResourceUtils extends Object
Convenient utility methods for dealing with SAX.- 从以下版本开始:
- 3.0
- 作者:
- Arjen Poutsma, Juergen Hoeller
构造器详细资料
SaxResourceUtils
public SaxResourceUtils()
方法详细资料
createInputSource
public static InputSource createInputSource(Resource resource) throws IOException
Create a SAXInputSource
from the given resource.Sets the system identifier to the resource's
URL
, if available.- 参数:
resource
- the resource- 返回:
- the input source created from the resource
- 抛出:
IOException
- if an I/O exception occurs- 另请参阅:
InputSource.setSystemId(String)
,getSystemId(org.springframework.core.io.Resource)