commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Tripodi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FILEUPLOAD-159) MultipartStream.position method
Date Mon, 11 Mar 2013 14:25:13 GMT

    [ https://issues.apache.org/jira/browse/FILEUPLOAD-159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13598849#comment-13598849
] 

Simone Tripodi commented on FILEUPLOAD-159:
-------------------------------------------

[~yozh] any chance you can resubmit a cleaner patch applying [~jochen.wiedmann@gmail.com]'s
observations and without refactoring existing methods? TIA!
                
> MultipartStream.position method
> -------------------------------
>
>                 Key: FILEUPLOAD-159
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-159
>             Project: Commons FileUpload
>          Issue Type: Improvement
>    Affects Versions: 1.2.2
>            Reporter: Stepan Koltsov
>         Attachments: commons-fileupload-position-2008-05-28.diff
>
>
> Attached patch adds MultipartStream.position() method, that returns current position
withing InputStream plus offset in buffer. I. e. current parser position.
> Use case is parsing multipart that is stored as file on disk: at first run we read that
file and saving part offsets (by calling position() methods). Then we can randomly access
all parts without storing parts as separate files on disk.

--
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

Mime
View raw message