Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D64EE185E1 for ; Fri, 25 Mar 2016 13:35:29 +0000 (UTC) Received: (qmail 36773 invoked by uid 500); 25 Mar 2016 13:35:29 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 36669 invoked by uid 500); 25 Mar 2016 13:35:29 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 36657 invoked by uid 99); 25 Mar 2016 13:35:29 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2016 13:35:29 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 85F122C14F8 for ; Fri, 25 Mar 2016 13:35:25 +0000 (UTC) Date: Fri, 25 Mar 2016 13:35:25 +0000 (UTC) From: "Stefan Bodewig (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COMPRESS-207) add notifier support for new block in BZip2CompressorInputStream MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COMPRESS-207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15211798#comment-15211798 ] Stefan Bodewig commented on COMPRESS-207: ----------------------------------------- For some reason I thought something like this would be a nice addition to 2.0 - but given the speed of development of 2.0 it would be unfair to keep you waiting. would it make sense to extend it to also count concatenated streams? That way the same kind of notification callback could be used for gzip and xz. The block based approach could be applied to snappy as well. > 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 > Labels: API, bzip > Attachments: 0001-Add-notifier-support-for-new-block-in-BZip2Compresso.patch, BZip2CompressorInputStream-add-newBlock-notifier.patch, 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, currBlockPosition) > - this = the current BZip2CompressorInputStream object > - currBlockPosition = The offset (i.e. start position) in the compressed > input stream of the current block -- This message was sent by Atlassian JIRA (v6.3.4#6332)