Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
4.2.3
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.