Spring Web Services Framework

org.springframework.xml.transform
Class StringResult

java.lang.Object
  extended by javax.xml.transform.stream.StreamResult
      extended by org.springframework.xml.transform.StringResult
All Implemented Interfaces:
Result

public class StringResult
extends StreamResult

Convenient subclass of StreamResult that writes to a StringWriter. The resulting string can be retrieved via toString().

Since:
1.0.0
Author:
Arjen Poutsma
See Also:
toString()

Field Summary
 
Fields inherited from class javax.xml.transform.stream.StreamResult
FEATURE
 
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
 
Constructor Summary
StringResult()
           
 
Method Summary
 String toString()
          Returns the written XML as a string.
 
Methods inherited from class javax.xml.transform.stream.StreamResult
getOutputStream, getSystemId, getWriter, setOutputStream, setSystemId, setSystemId, setWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringResult

public StringResult()
Method Detail

toString

public String toString()
Returns the written XML as a string.

Overrides:
toString in class Object

Spring Web Services Framework

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