Class ResourceSource
java.lang.Object
javax.xml.transform.sax.SAXSource
org.springframework.xml.transform.ResourceSource
- All Implemented Interfaces:
Source
Convenient subclass of
SAXSource that reads from a Spring Resource. The resource to be read can be
set via the constructor.- Since:
- 1.0.0
- Author:
- Arjen Poutsma
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionResourceSource(org.springframework.core.io.Resource content) Initializes a new instance of theResourceSourcewith the given resource.ResourceSource(XMLReader reader, org.springframework.core.io.Resource content) Initializes a new instance of theResourceSourcewith the givenXMLReaderand resource. -
Method Summary
Methods inherited from class javax.xml.transform.sax.SAXSource
getInputSource, getSystemId, getXMLReader, isEmpty, setInputSource, setSystemId, setXMLReader, sourceToInputSource
-
Constructor Details
-
ResourceSource
Initializes a new instance of theResourceSourcewith the given resource.- Parameters:
content- the content- Throws:
IOException
-
ResourceSource
public ResourceSource(XMLReader reader, org.springframework.core.io.Resource content) throws IOException Initializes a new instance of theResourceSourcewith the givenXMLReaderand resource.- Parameters:
content- the content- Throws:
IOException
-