org.apache.camel
Class StringSource
java.lang.Object
javax.xml.transform.stream.StreamSource
org.apache.camel.StringSource
- All Implemented Interfaces:
- Externalizable, Serializable, Source
- Direct Known Subclasses:
- SourceCache
public class StringSource
- extends StreamSource
- implements Externalizable
A helper class which provides a JAXP Source
from a String which can be read as many times as required. Encoding
is default UTF-8.
- Version:
- See Also:
- Serialized Form
StringSource
public StringSource()
StringSource
public StringSource(String text)
StringSource
public StringSource(String text,
String systemId)
StringSource
public StringSource(String text,
String systemId,
String encoding)
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()
getEncoding
public String getEncoding()
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
Apache CAMEL