Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7F479200B9B for ; Wed, 12 Oct 2016 17:17:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7DC81160AD3; Wed, 12 Oct 2016 15:17:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C4A6B160AF5 for ; Wed, 12 Oct 2016 17:17:21 +0200 (CEST) Received: (qmail 21117 invoked by uid 500); 12 Oct 2016 15:17:20 -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 20835 invoked by uid 99); 12 Oct 2016 15:17:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2016 15:17:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 996FC2C4C7C for ; Wed, 12 Oct 2016 15:17:20 +0000 (UTC) Date: Wed, 12 Oct 2016 15:17:20 +0000 (UTC) From: "Stefan Bodewig (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COMPRESS-327) Support in-memory processing for ZipFile MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 12 Oct 2016 15:17:22 -0000 [ https://issues.apache.org/jira/browse/COMPRESS-327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15569010#comment-15569010 ] Stefan Bodewig commented on COMPRESS-327: ----------------------------------------- Current git master's 7z package is able to deal with {{SeekableByteChannel}} and doesn't require {{RandomAccessFile}} anymore. I plan to do the same to the zip package. The current code could be improved to use cached {{ByteBuffer}}s in order to reduce memory consumption. We may want to add an implementation of {{SeekableByteChannel}} wrapped around a {{byte[]}}}. > Support in-memory processing for ZipFile > ---------------------------------------- > > Key: COMPRESS-327 > URL: https://issues.apache.org/jira/browse/COMPRESS-327 > Project: Commons Compress > Issue Type: New Feature > Reporter: Brett Kail > Priority: Minor > Fix For: 1.13 > > Attachments: 0001-Add-a-SeekableInputStream-and-some-subclasses-that-Z.patch > > > ZipFile (and SevenZFile) currently require a File argument, but it would be nice to support in-memory byte buffers rather than requiring temp files. Perhaps create a new SeekableInputStream class (or SeekableDataInput interface) and add corresponding constructors. > For convenience, perhaps also add a utility class that wraps a ByteBuffer and/or byte[] and implements the new interface. > (The sevenz package appears to have a similar limitation, so it might make sense to add the support there at the same time, but I personally don't have a need for that.) -- This message was sent by Atlassian JIRA (v6.3.4#6332)