Class StringResult

java.lang.Object
javax.xml.transform.stream.StreamResult
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:
  • Constructor Details

    • StringResult

      public StringResult()
  • Method Details

    • toString

      public String toString()
      Returns the written XML as a string.
      Overrides:
      toString in class Object