camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r752755 - /camel/trunk/camel-core/src/main/java/org/apache/camel/converter/stream/StreamCacheConverter.java
Date Thu, 12 Mar 2009 03:18:16 GMT
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);



Mime
View raw message