Spring Web Services Framework

org.springframework.xml.transform
Class ResourceSource

java.lang.Object
  extended by javax.xml.transform.sax.SAXSource
      extended by org.springframework.xml.transform.ResourceSource
All Implemented Interfaces:
Source

public class ResourceSource
extends 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

Field Summary
 
Fields inherited from class javax.xml.transform.sax.SAXSource
FEATURE
 
Constructor Summary
ResourceSource(Resource content)
          Initializes a new instance of the ResourceSource with the given resource.
ResourceSource(XMLReader reader, Resource content)
          Initializes a new instance of the ResourceSource with the given XMLReader and resource.
 
Method Summary
 
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
 

Constructor Detail

ResourceSource

public ResourceSource(Resource content)
               throws IOException
Initializes a new instance of the ResourceSource with the given resource.

Parameters:
content - the content
Throws:
IOException

ResourceSource

public ResourceSource(XMLReader reader,
                      Resource content)
               throws IOException
Initializes a new instance of the ResourceSource with the given XMLReader and resource.

Parameters:
content - the content
Throws:
IOException

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.