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 2008/12/02 13:06:51 UTC

svn commit: r722438 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/IOConverter.java

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 {