[ 
https://issues.apache.org/jira/browse/HTTPCORE-330?page=com.atlassian.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 for the length 
parameter in the constructor if the length is not known.  Please clarify this 
in the javadoc.  Also, because is length is optional, perhaps corresponding 
constructors should be added that don't require this parameter.  (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 zero for the {{length}} 
parameter in the constructor if the length is not known.  Please clarify this 
in the javadoc.  Also, because is length is optional, perhaps corresponding 
constructors should be added that don't require this parameter.)
        Summary: Clarify InputStreamEntity length constructor argument  (was: 
Clarify {{InputStreamEntity}} {{length}} constructor argument)
    
> 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.  (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 for the length 
> parameter in the constructor if the length is not known.  Please clarify this 
> in the javadoc.  Also, because is length is optional, perhaps corresponding 
> 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 administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to