Benedikt Ritter created FILEUPLOAD-264:
------------------------------------------

             Summary: Let ServletFileUpload implement Iterable<FileUploadStream>
                 Key: FILEUPLOAD-264
                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-264
             Project: Commons FileUpload
          Issue Type: Improvement
            Reporter: Benedikt Ritter


ServletFileUpload implements a custom iterator, which doesn't implement 
{{java.util.Iterator}}. We should consider implementing 
{{Iterable<FileUploadStream>}} on ServletFileUpload so that is can be used in 
enhanced for loops. Further more, the iterator could then be used by other APIs 
which consume Iterator instances. The iterator returned by the 
{{Iterable.iterator()}} method could be a thin wrapper around FileItemIterator, 
which throughs UnsupportedOperationException when {{remove()}} is called.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to