Package org.apache.camel.util.xml
Class StringSource
java.lang.Object
javax.xml.transform.stream.StreamSource
org.apache.camel.util.xml.StringSource
- All Implemented Interfaces:
Externalizable
,Serializable
,Source
- Direct Known Subclasses:
SourceCache
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.- See Also:
-
Field Summary
Fields inherited from class javax.xml.transform.stream.StreamSource
FEATURE
-
Constructor Summary
ConstructorDescriptionStringSource
(String text) StringSource
(String text, String systemId) StringSource
(String text, String systemId, String encoding) -
Method Summary
Methods inherited from class javax.xml.transform.stream.StreamSource
getPublicId, getSystemId, isEmpty, setInputStream, setPublicId, setReader, setSystemId, setSystemId
-
Constructor Details
-
StringSource
public StringSource() -
StringSource
-
StringSource
-
StringSource
-
-
Method Details
-
getInputStream
- Overrides:
getInputStream
in classStreamSource
-
getReader
- Overrides:
getReader
in classStreamSource
-
toString
-
getText
-
getEncoding
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-