Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-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 EF3CBECDA for ; Thu, 17 Jan 2013 07:38:16 +0000 (UTC) Received: (qmail 93199 invoked by uid 500); 17 Jan 2013 07:38:16 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 92959 invoked by uid 500); 17 Jan 2013 07:38:15 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 92699 invoked by uid 99); 17 Jan 2013 07:38:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2013 07:38:13 +0000 Date: Thu, 17 Jan 2013 07:38:13 +0000 (UTC) From: "John McCarthy (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HTTPCORE-330) Clarify InputStreamEntity length constructor argument MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCORE-330?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] John McCarthy updated HTTPCORE-330: ----------------------------------- Description: When creating an InputStreamEntity, content length may not= be known. (Also, it may be desired to create an entity that will be read = until fully consumed without specifying a content length.) From what I see= in the writeTo() method source, you may specify a number less than zero fo= r the length parameter in the constructor if the length is not known. Plea= se clarify this in the javadoc. Also, because is length is optional, perha= ps corresponding constructors should be added that don't require this param= eter. (was: When creating an {{InputStreamEntity}}, content length may not= be known. (Also, it may be desired to create an entity that will be read = until fully consumed without specifying a content length.) From what I see= in the {{writeTo()}} method source, you may specify a number less than zer= o for the {{length}} parameter in the constructor if the length is not know= n. Please clarify this in the javadoc. Also, because is length is optiona= l, perhaps corresponding constructors should be added that don't require th= is parameter.) Summary: Clarify InputStreamEntity length constructor argument (wa= s: Clarify {{InputStreamEntity}} {{length}} constructor argument) =20 > Clarify InputStreamEntity length constructor argument > ----------------------------------------------------- > > Key: HTTPCORE-330 > URL: https://issues.apache.org/jira/browse/HTTPCORE-330 > Project: HttpComponents HttpCore > Issue Type: Improvement > Components: Documentation, HttpCore > Affects Versions: 4.2.3 > Reporter: John McCarthy > Priority: Minor > Labels: documentation > > When creating an InputStreamEntity, content length may not be known. (Al= so, it may be desired to create an entity that will be read until fully con= sumed without specifying a content length.) From what I see in the writeTo= () method source, you may specify a number less than zero for the length pa= rameter in the constructor if the length is not known. Please clarify this= in the javadoc. Also, because is length is optional, perhaps correspondin= g constructors should be added that don't require this parameter. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org