org.xmlmatchers.transform
Class StringSource

java.lang.Object
  extended by javax.xml.transform.dom.DOMSource
      extended by org.xmlmatchers.transform.StringSource
All Implemented Interfaces:
Source

public class StringSource
extends DOMSource

A convenience class for creating Source objects from a String.

Author:
David Ehringer
See Also:
DOMSource

Field Summary
 
Fields inherited from class javax.xml.transform.dom.DOMSource
FEATURE
 
Method Summary
static DOMSource toSource(String xml)
           
 String toString()
           
 
Methods inherited from class javax.xml.transform.dom.DOMSource
getNode, getSystemId, setNode, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toSource

public static DOMSource toSource(String xml)
                          throws RuntimeException
Throws:
RuntimeException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2011. All Rights Reserved.