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 24895200C17 for ; Fri, 10 Feb 2017 22:01:18 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2310D160B5C; Fri, 10 Feb 2017 21:01:18 +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 6AD8C160B4E for ; Fri, 10 Feb 2017 22:01:17 +0100 (CET) Received: (qmail 73634 invoked by uid 500); 10 Feb 2017 21:01:16 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 73623 invoked by uid 99); 10 Feb 2017 21:01:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2017 21:01:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BACA018612A for ; Fri, 10 Feb 2017 21:01:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.3 X-Spam-Level: X-Spam-Status: No, score=-1.3 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Bj7rtXmNRCDS for ; Fri, 10 Feb 2017 21:01:14 +0000 (UTC) Received: from urchin.earth.li (urchin.earth.li [212.13.204.73]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 60BA15F1B3 for ; Fri, 10 Feb 2017 21:01:14 +0000 (UTC) Received: from nick (helo=localhost) by urchin.earth.li with local-esmtp (Exim 4.84_2) (envelope-from ) id 1ccIJT-0004kT-37 for dev@poi.apache.org; Fri, 10 Feb 2017 21:01:03 +0000 Date: Fri, 10 Feb 2017 21:01:03 +0000 (GMT) From: Nick Burch X-X-Sender: nick@urchin.earth.li To: POI Developers List Subject: RE: NPOIFS, files and the read-only flag In-Reply-To: <4CBBBDD7FB566C4DB70EB7A04E0B466F012F9FA6@Exchange3.exchange2.metalexmfg.com> Message-ID: References: <4b6e4c68-8bfe-33db-cf66-17c4302401ca@apache.org> <4CBBBDD7FB566C4DB70EB7A04E0B466F012F9FA6@Exchange3.exchange2.metalexmfg.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed archived-at: Fri, 10 Feb 2017 21:01:18 -0000 On Fri, 10 Feb 2017, Murphy, Mark wrote: > I guess I don't understand this that well, so please bear with me. With > a File loaded read-write how are changes stored such that writing to a > different OutputStream is not feasible? I don't think they are written > back to the original File until a write operation is performed. Or is > that incorrect? At the NPOIFS level, if you do writes to an open read-write NPOIFS instance, those will get reflected back to the original file in near-realtime without having to call close/write. At the HSSF / HWPF / etc level, if you open from a read-write NPOIFS, then write out to a new stream, nothing changes on the original file as a new NPOIFS is generated + populated. Nick --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org