Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5503711AFE for ; Tue, 1 Jul 2014 02:30:37 +0000 (UTC) Received: (qmail 69075 invoked by uid 500); 1 Jul 2014 02:30:37 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 69020 invoked by uid 500); 1 Jul 2014 02:30:37 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 69009 invoked by uid 99); 1 Jul 2014 02:30:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2014 02:30:36 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of irisdingbj@gmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2014 02:30:34 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1X1npi-0004DZ-7x for dev@cxf.apache.org; Mon, 30 Jun 2014 19:30:10 -0700 Date: Mon, 30 Jun 2014 19:30:10 -0700 (PDT) From: iris ding To: dev@cxf.apache.org Message-ID: <1404181810223-5745788.post@n5.nabble.com> In-Reply-To: <358F5275-8482-44C5-85B2-2B8010B2C3EF@gmail.com> References: <1404176839047-5745783.post@n5.nabble.com> <018359D3-C473-44A9-856B-F54DD0AFB658@apache.org> <1404179270300-5745785.post@n5.nabble.com> <358F5275-8482-44C5-85B2-2B8010B2C3EF@gmail.com> Subject: Re: two issues in org.apache.cxf.jaxrs.provider.DataSourceProvider MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Johan, Can I know the reason for your point? Actually, the key reason for the issue 2 is not for available() usage. Let me give an example for this issue: If you deploy your application to Tomcat, the incomming InputStream might be a tomcat class which implements ServletInputStream. If you deploy your application to WebSphere, the incoming InputStream might be a websphere specific class which implements ServletInputStream. In other case, the incomming InputStream might be some other class which implements InputStream directly. In such case if we do not do conversion and return the original incomming InputStream, Users will loose control of it. He might need to use specific API to operate the different stream. Iris Ding -- View this message in context: http://cxf.547215.n5.nabble.com/two-issues-in-org-apache-cxf-jaxrs-provider-DataSourceProvider-tp5745783p5745788.html Sent from the cxf-dev mailing list archive at Nabble.com.