camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1365061 - /camel/trunk/camel-core/src/main/java/org/apache/camel/converter/IOConverter.java
Date Tue, 24 Jul 2012 13:55:24 GMT
Author: ningjiang
Date: Tue Jul 24 13:55:24 2012
New Revision: 1365061

URL: http://svn.apache.org/viewvc?rev=1365061&view=rev
Log:
CAMEL-5461 IOConverter.toInputStream should provide close and reset method

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

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/converter/IOConverter.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/IOConverter.java?rev=1365061&r1=1365060&r2=1365061&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/converter/IOConverter.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/converter/IOConverter.java Tue Jul
24 13:55:24 2012
@@ -81,6 +81,16 @@ public final class IOConverter {
                 public int read() throws IOException {
                     return reader.read();
                 }
+                
+                @Override
+                public void close() throws IOException {
+                    reader.close();
+                }
+                
+                @Override
+                public void reset() throws IOException {
+                    reader.reset();
+                }
             };
         } else {
             return IOHelper.buffered(new FileInputStream(file));



Mime
View raw message