Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0B6549D83 for ; Tue, 24 Jul 2012 13:56:15 +0000 (UTC) Received: (qmail 71544 invoked by uid 500); 24 Jul 2012 13:56:14 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 71477 invoked by uid 500); 24 Jul 2012 13:56:12 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 71461 invoked by uid 99); 24 Jul 2012 13:56:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2012 13:56:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2012 13:56:10 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id E56CF238890D; Tue, 24 Jul 2012 13:55:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@camel.apache.org From: ningjiang@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120724135524.E56CF238890D@eris.apache.org> 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));