You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jochen Wiedmann (JIRA)" <ji...@apache.org> on 2009/01/18 02:48:59 UTC

[jira] Commented: (FILEUPLOAD-159) MultipartStream.position method

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

Jochen Wiedmann commented on FILEUPLOAD-159:
--------------------------------------------

A question on your patch: Why is position incremented twice in read()?


> MultipartStream.position method
> -------------------------------
>
>                 Key: FILEUPLOAD-159
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-159
>             Project: Commons FileUpload
>          Issue Type: Improvement
>    Affects Versions: Nightly Builds
>            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.
-
You can reply to this email to add a comment to the issue online.