Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-330

Clarify InputStreamEntity length constructor argument

    XMLWordPrintableJSON

Details

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jmsignup John McCarthy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: