camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r722438 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/IOConverter.java
Date Tue, 02 Dec 2008 12:06:51 GMT
Author: ningjiang
Date: Tue Dec  2 04:06:51 2008
New Revision: 722438

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

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/IOConverter.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/IOConverter.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/IOConverter.java?rev=722438&r1=722437&r2=722438&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/IOConverter.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/IOConverter.java
Tue Dec  2 04:06:51 2008
@@ -138,6 +138,11 @@
         }
         return toInputStream(text.getBytes());
     }
+    
+    @Converter
+    public static InputStream toInputStream(BufferedReader buffer) throws IOException {
+        return toInputStream(toString(buffer), null);
+    }
 
     @Converter
     public static InputStream toInputStream(BufferedReader buffer, Exchange exchange) throws
IOException {



Mime
View raw message