org.apache.camel.converter.jaxp
Class StringSource

java.lang.Object
  extended by javax.xml.transform.stream.StreamSource
      extended by org.apache.camel.converter.jaxp.StringSource
All Implemented Interfaces:
Serializable, Source

public class StringSource
extends StreamSource
implements Serializable

A helper class which provides a JAXP Source from a String which can be read as many times as required.

Version:
$Revision: 36635 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.xml.transform.stream.StreamSource
FEATURE
 
Constructor Summary
StringSource(String text)
           
StringSource(String text, String systemId)
           
StringSource(String text, String systemId, String encoding)
           
 
Method Summary
 InputStream getInputStream()
           
 Reader getReader()
           
 String getText()
           
 String toString()
           
 
Methods inherited from class javax.xml.transform.stream.StreamSource
getPublicId, getSystemId, setInputStream, setPublicId, setReader, 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 text)

StringSource

public StringSource(String text,
                    String systemId)

StringSource

public StringSource(String text,
                    String systemId,
                    String encoding)
Method Detail

getInputStream

public InputStream getInputStream()
Overrides:
getInputStream in class StreamSource

getReader

public Reader getReader()
Overrides:
getReader in class StreamSource

toString

public String toString()
Overrides:
toString in class Object

getText

public String getText()


Copyright © 2008 IONA Open Source Community. All Rights Reserved.