org.apache.camel
Interface StreamCache

All Known Implementing Classes:
FileInputStreamCache, InputStreamCache, ReaderCache, SourceCache, StreamSourceCache

public interface StreamCache

Tagging interface to indicate that a type is capable of caching the underlying data stream.

This is a useful feature for avoid message re-readability issues. This interface is mainly used by the StreamCachingInterceptor for determining if/how to wrap a stream-based message.

Version:
$Revision: 15661 $

Method Summary
 void reset()
          Resets the StreamCache for a new stream consumption.
 void writeTo(OutputStream os)
          Writes the stream to the given output
 

Method Detail

reset

void reset()
Resets the StreamCache for a new stream consumption.


writeTo

void writeTo(OutputStream os)
             throws IOException
Writes the stream to the given output

Parameters:
os - the destination to write to
Throws:
IOException - is thrown if write fails


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.