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.
 
Method Summary
 InputStream getInputStream()
          Returns null.
 Reader getReader()
           
 void setInputStream(InputStream inputStream)
          Throws UnsupportedOperationException.
 void setReader(Reader reader)
          Throws UnsupportedOperationException.
 String toString()
           
 
Methods inherited from class javax.xml.transform.stream.StreamSource
getPublicId, getSystemId, setPublicId, setSystemId, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
Method Detail

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

Spring Web Services Framework

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