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
ConstructorDescriptionResourceSource
(org.springframework.core.io.Resource content) Initializes a new instance of theResourceSource
with the given resource.ResourceSource
(XMLReader reader, org.springframework.core.io.Resource content) Initializes a new instance of theResourceSource
with the givenXMLReader
and 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 theResourceSource
with 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 theResourceSource
with the givenXMLReader
and resource.- Parameters:
content
- the content- Throws:
IOException
-