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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

davsclaus-2
Author: davsclaus
Date: Mon Jan 19 07:43:34 2009
New Revision: 735732

URL: http://svn.apache.org/viewvc?rev=735732&view=rev
Log:
CAMEL-1272: Removed duplicate type converter. We should keep the ones that support Exchange optional parameter.

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=735732&r1=735731&r2=735732&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 Mon Jan 19 07:43:34 2009
@@ -116,11 +116,6 @@
     }
 
     @Converter
-    public static InputStream toInputStream(String text) {
-        return toInputStream(text, null);
-    }
-    
-    @Converter
     public static InputStream toInputStream(String text, Exchange exchange) {
         if (exchange != null) {
             String charsetName = exchange.getProperty(Exchange.CHARSET_NAME, String.class);
@@ -136,11 +131,6 @@
     }
     
     @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 {
         return toInputStream(toString(buffer), exchange);
     }