org.springframework.xml.transform
Class StringSource
java.lang.Object
javax.xml.transform.stream.StreamSource
org.springframework.xml.transform.StringSource
- All Implemented Interfaces:
- Source
public class StringSource
- extends StreamSource
Convenient subclass of StreamSource that reads from a StringReader. The string to be read
can be set via the constructor.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
|
Constructor Summary |
StringSource(String content)
Initializes a new instance of the StringSource with the given string content. |
StringSource
public StringSource(String content)
- Initializes a new instance of the
StringSource with the given string content.
- Parameters:
content - the content
getReader
public Reader getReader()
- Overrides:
getReader in class StreamSource
setInputStream
public void setInputStream(InputStream inputStream)
- Throws
UnsupportedOperationException.
- Overrides:
setInputStream in class StreamSource
- Throws:
UnsupportedOperationException - always
getInputStream
public InputStream getInputStream()
- Returns
null.
- Overrides:
getInputStream in class StreamSource
- Returns:
null
setReader
public void setReader(Reader reader)
- Throws
UnsupportedOperationException.
- Overrides:
setReader in class StreamSource
- Throws:
UnsupportedOperationException - always
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.