Spring Web Services Framework

org.springframework.xml.transform
Class StringSource

java.lang.Object
  extended by javax.xml.transform.stream.StreamSource
      extended by 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

Field Summary
 
Fields inherited from class javax.xml.transform.stream.StreamSource
FEATURE
 
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.
 
Method Summary
 
Methods inherited from class javax.xml.transform.stream.StreamSource
getInputStream, getPublicId, getReader, getSystemId, setInputStream, setPublicId, setReader, setSystemId, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 content
systemId - a string that conforms to the URI syntax

Spring Web Services Framework

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