org.apache.camel.converter.stream
Class SourceCache
java.lang.Object
javax.xml.transform.stream.StreamSource
org.apache.camel.converter.jaxp.StringSource
org.apache.camel.converter.stream.SourceCache
- All Implemented Interfaces:
- Externalizable, Serializable, Source, StreamCache
public class SourceCache
- extends StringSource
- implements StreamCache
StreamCache implementation for StringSources
- See Also:
- Serialized Form
|
Method Summary |
void |
reset()
Resets the StreamCache for a new stream consumption. |
void |
writeTo(OutputStream os)
Writes the stream to the given output |
SourceCache
public SourceCache()
SourceCache
public SourceCache(String data)
reset
public void reset()
- Description copied from interface:
StreamCache
- Resets the StreamCache for a new stream consumption.
- Specified by:
reset in interface StreamCache
writeTo
public void writeTo(OutputStream os)
throws IOException
- Description copied from interface:
StreamCache
- Writes the stream to the given output
- Specified by:
writeTo in interface StreamCache
- Parameters:
os - the destination to write to
- Throws:
IOException
Apache CAMEL