org.apache.camel.converter.stream
Class StreamSourceCache

java.lang.Object
  extended by javax.xml.transform.stream.StreamSource
      extended by org.apache.camel.converter.stream.StreamSourceCache
All Implemented Interfaces:
Source, StreamCache

public class StreamSourceCache
extends StreamSource
implements StreamCache

StreamCache implementation for Cache the StreamSource StreamSources


Field Summary
 
Fields inherited from class javax.xml.transform.stream.StreamSource
FEATURE
 
Constructor Summary
StreamSourceCache(StreamSource source, Exchange exchange)
           
 
Method Summary
 InputStream getInputStream()
           
 void reset()
          Resets the StreamCache for a new stream consumption.
 void setInputStream(InputStream inputStream)
           
 void writeTo(OutputStream os)
          Writes the stream to the given output
 
Methods inherited from class javax.xml.transform.stream.StreamSource
getPublicId, getReader, getSystemId, setPublicId, setReader, setSystemId, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamSourceCache

public StreamSourceCache(StreamSource source,
                         Exchange exchange)
                  throws IOException
Throws:
IOException
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

getInputStream

public InputStream getInputStream()
Overrides:
getInputStream in class StreamSource

setInputStream

public void setInputStream(InputStream inputStream)
Overrides:
setInputStream in class StreamSource


Apache CAMEL