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(String content,
String systemId)
Initializes a new instance of the StringSource with the given string content and system id. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringSource
public StringSource(String content)
- Initializes a new instance of the
StringSource
with the given string content.
- Parameters:
content
- the content
StringSource
public StringSource(String content,
String systemId)
- Initializes a new instance of the
StringSource
with the given string content and system id.
- Parameters:
content
- the contentsystemId
- a string that conforms to the URI syntax
Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.