jira-importer opened a new issue, #1354:
URL: https://github.com/apache/httpcomponents-core/issues/1354

   **[Galder 
Zamarreno](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=galderz)**
 opened 
**[HTTPCORE-199](https://issues.apache.org/jira/browse/HTTPCORE-199?redirect=false)**
 and commented
   
   I'm having an issue with ContentInputStream because it does not
   override IS.available() method. Our client code is implemented in such
   way that available() is checked before creating a buffer so that a not
   too big buffer is created. Javadoc for IS.available says:
   
       * <p> This method should be overridden by subclasses.
   
   Hence, ContentInputStream should be overriding it. However,
   ContentInputBuffer does to expose the necessary methods to be able
   calculate this but the implementations do have the possibility of
   calculating this, i.e. SimpleInputBuffer. Any chance of improving
   ContentInputBuffer API so that an available() method is added? If so,
   what would be the timeframe for it?
   
   
   ---
   
   **Affects:** 4.0.1
   
   **Attachments:**
   - 
[HTTPCORE-199.patch](https://issues.apache.org/jira/secure/attachment/12412414/HTTPCORE-199.patch)
 (_2.75 kB_)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to