camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r752786 - /camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/converter/stream/StreamCacheConverter.java
Date Thu, 12 Mar 2009 06:28:52 GMT
Author: ningjiang
Date: Thu Mar 12 06:28:52 2009
New Revision: 752786

URL: http://svn.apache.org/viewvc?rev=752786&view=rev
Log:
Fixed the build error of StreamCacheConverter

Modified:
    camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/converter/stream/StreamCacheConverter.java

Modified: camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/converter/stream/StreamCacheConverter.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/converter/stream/StreamCacheConverter.java?rev=752786&r1=752785&r2=752786&view=diff
==============================================================================
--- camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/converter/stream/StreamCacheConverter.java
(original)
+++ camel/branches/camel-1.x/camel-core/src/main/java/org/apache/camel/converter/stream/StreamCacheConverter.java
Thu Mar 12 06:28:52 2009
@@ -46,8 +46,8 @@
     private XmlConverter converter = new XmlConverter();
 
     @Converter
-    public StreamCache convertToStreamCache(StreamSource source) throws IOException {
-        return new StreamSourceCache(source);
+    public StreamCache convertToStreamCache(StreamSource source, Exchange exchange) throws
IOException {
+        return new StreamSourceCache(source, exchange);
     }
     
     @Converter
@@ -107,7 +107,7 @@
         StreamCache streamCache;
         ReaderCache readCache;
         
-        public StreamSourceCache(StreamSource source) throws IOException {
+        public StreamSourceCache(StreamSource source, Exchange exchange) throws IOException
{
             if (source.getInputStream() != null) {
                 // set up CachedOutputStream with the properties
                 CachedOutputStream cos = new CachedOutputStream(exchange.getContext().getProperties());



Mime
View raw message