You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Meyer (JIRA)" <ji...@apache.org> on 2012/10/30 19:20:13 UTC

[jira] [Created] (COMPRESS-207) add notifier support for new block in BZip2CompressorInputStream

Thomas Meyer created COMPRESS-207:
-------------------------------------

             Summary: add notifier support for new block in BZip2CompressorInputStream
                 Key: COMPRESS-207
                 URL: https://issues.apache.org/jira/browse/COMPRESS-207
             Project: Commons Compress
          Issue Type: New Feature
          Components: Compressors
    Affects Versions: 1.4.1
            Reporter: Thomas Meyer
            Priority: Minor


hi,

attached patch enables an program to add a listener when a new bzip2
block is detected.

The notifier is called with:
 - xxx.newBlock(this, currBlockNo, currBlockPosition)

- this = the current BZip2CompressorInputStream object
- currBlockNo = The current block number, increased for each block
- currBlockPosition = The offset (i.e. start position) in the compressed
input stream of the current block


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

[jira] [Updated] (COMPRESS-207) add notifier support for new block in BZip2CompressorInputStream

Posted by "Thomas Meyer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COMPRESS-207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Meyer updated COMPRESS-207:
----------------------------------

    Attachment: BZip2CompressorInputStream-add-newBlock-notifier.patch

v2 - some fixes. Added a resetBlock() block method to enable to bit-exact (re-)positioning after a seek on the underlying InputStream.
                
> add notifier support for new block in BZip2CompressorInputStream
> ----------------------------------------------------------------
>
>                 Key: COMPRESS-207
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-207
>             Project: Commons Compress
>          Issue Type: New Feature
>          Components: Compressors
>    Affects Versions: 1.4.1
>            Reporter: Thomas Meyer
>            Priority: Minor
>         Attachments: BZip2CompressorInputStream-add-newBlock-notifier.patch, BZip2CompressorInputStream-add-newBlock-notifier.patch
>
>
> hi,
> attached patch enables an program to add a listener when a new bzip2
> block is detected.
> The notifier is called with:
>  - xxx.newBlock(this, currBlockNo, currBlockPosition)
> - this = the current BZip2CompressorInputStream object
> - currBlockNo = The current block number, increased for each block
> - currBlockPosition = The offset (i.e. start position) in the compressed
> input stream of the current block

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

[jira] [Updated] (COMPRESS-207) add notifier support for new block in BZip2CompressorInputStream

Posted by "Thomas Meyer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COMPRESS-207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Meyer updated COMPRESS-207:
----------------------------------

    Attachment: BZip2CompressorInputStream-add-newBlock-notifier.patch

v1
                
> add notifier support for new block in BZip2CompressorInputStream
> ----------------------------------------------------------------
>
>                 Key: COMPRESS-207
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-207
>             Project: Commons Compress
>          Issue Type: New Feature
>          Components: Compressors
>    Affects Versions: 1.4.1
>            Reporter: Thomas Meyer
>            Priority: Minor
>         Attachments: BZip2CompressorInputStream-add-newBlock-notifier.patch
>
>
> hi,
> attached patch enables an program to add a listener when a new bzip2
> block is detected.
> The notifier is called with:
>  - xxx.newBlock(this, currBlockNo, currBlockPosition)
> - this = the current BZip2CompressorInputStream object
> - currBlockNo = The current block number, increased for each block
> - currBlockPosition = The offset (i.e. start position) in the compressed
> input stream of the current block

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