org.apache.camel.converter.stream
Class SourceCache

java.lang.Object
  extended by javax.xml.transform.stream.StreamSource
      extended by org.apache.camel.converter.jaxp.StringSource
          extended by 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

Field Summary
 
Fields inherited from class javax.xml.transform.stream.StreamSource
FEATURE
 
Constructor Summary
SourceCache()
           
SourceCache(String data)
           
 
Method Summary
 void reset()
          Resets the StreamCache for a new stream consumption.
 void writeTo(OutputStream os)
          Writes the stream to the given output
 
Methods inherited from class org.apache.camel.converter.jaxp.StringSource
getEncoding, getInputStream, getReader, getText, readExternal, toString, writeExternal
 
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

SourceCache

public SourceCache()

SourceCache

public SourceCache(String data)
Method Detail

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 - is thrown if write fails


Apache CAMEL