You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by Mladen Covic <ml...@db.com> on 2013/03/12 19:15:55 UTC

RE: [Bug 54654] Can not use same file for reading and writing a Workbook [I]

Classification: For internal use only

Nick,

I don't think your statement (comment #3) is a exactly correct one. Windows does allow simultaneous read AND write on a single instance of the File object. It can be obtained through the RandomFileAccess object that can read and write at the same time ("rw" argument in the constructor). That being said, I don't know if this is useful to POI at all if in POI you access files through streams that are already implemented. If, on the other hand, you are interested only in low level byte read/write you can do it through random access file object.

Mladen Covic

-----Original Message-----
From: bugzilla@apache.org [mailto:bugzilla@apache.org]
Sent: Tuesday, March 12, 2013 1:44 PM
To: dev@poi.apache.org
Subject: [Bug 54654] Can not use same file for reading and writing a Workbook

https://issues.apache.org/bugzilla/show_bug.cgi?id=54654

Nick Burch <ap...@gagravarr.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Nick Burch <ap...@gagravarr.org> --- It's a standard restriction on windows, nothing POI specific. You'll either need to use a 2nd file, or close the original one before trying to write out to it. Or switch to an OS without the restrictions!

--
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org


---
This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender immediately and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden.

Deutsche Bank does not render legal or tax advice, and the information contained in this communication should not be regarded as such.