You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2009/03/12 04:18:16 UTC

svn commit: r752755 - /camel/trunk/camel-core/src/main/java/org/apache/camel/converter/stream/StreamCacheConverter.java

Author: ningjiang
Date: Thu Mar 12 03:18:14 2009
New Revision: 752755

URL: http://svn.apache.org/viewvc?rev=752755&view=rev
Log:
CAMEL-1425 passed the camel context properties into CachedOutputStream

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/converter/stream/StreamCacheConverter.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/converter/stream/StreamCacheConverter.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/stream/StreamCacheConverter.java?rev=752755&r1=752754&r2=752755&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/converter/stream/StreamCacheConverter.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/converter/stream/StreamCacheConverter.java Thu Mar 12 03:18:14 2009
@@ -108,7 +108,8 @@
         
         public StreamSourceCache(StreamSource source, Exchange exchange) throws IOException {
             if (source.getInputStream() != null) {
-                CachedOutputStream cos = new CachedOutputStream();
+                // set up CachedOutputStream with the properties
+                CachedOutputStream cos = new CachedOutputStream(exchange.getContext().getProperties());
                 IOHelper.copyAndCloseInput(source.getInputStream(), cos);
                 streamCache = cos.getStreamCache();
                 setInputStream((InputStream)streamCache);