org.springframework.xml.transform
Class ResourceSource
java.lang.Object
javax.xml.transform.sax.SAXSource
org.springframework.xml.transform.ResourceSource
- All Implemented Interfaces:
- javax.xml.transform.Source
public class ResourceSource
- extends javax.xml.transform.sax.SAXSource
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
Fields inherited from class javax.xml.transform.sax.SAXSource |
FEATURE |
Constructor Summary |
ResourceSource(org.springframework.core.io.Resource content)
Initializes a new instance of the ResourceSource with the given resource. |
ResourceSource(org.xml.sax.XMLReader reader,
org.springframework.core.io.Resource content)
Initializes a new instance of the ResourceSource with the given XMLReader and resource. |
Methods inherited from class javax.xml.transform.sax.SAXSource |
getInputSource, getSystemId, getXMLReader, setInputSource, setSystemId, setXMLReader, sourceToInputSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceSource
public ResourceSource(org.springframework.core.io.Resource content)
throws IOException
- Initializes a new instance of the
ResourceSource
with the given resource.
- Parameters:
content
- the content
- Throws:
IOException
ResourceSource
public ResourceSource(org.xml.sax.XMLReader reader,
org.springframework.core.io.Resource content)
throws IOException
- Initializes a new instance of the
ResourceSource
with the given XMLReader
and resource.
- Parameters:
content
- the content
- Throws:
IOException
Copyright © 2010. All Rights Reserved.