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
ConstructorsConstructorDescriptionStringSource(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, setInputStream, setPublicId, setReader, setSystemId, setSystemId
-
Constructor Details
-
StringSource
public StringSource() -
StringSource
-
StringSource
-
StringSource
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceSource- Overrides:
isEmptyin classStreamSource
-
getInputStream
- Overrides:
getInputStreamin classStreamSource
-
getReader
- Overrides:
getReaderin classStreamSource
-
toString
-
getText
-
getEncoding
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-