https://bz.apache.org/bugzilla/show_bug.cgi?id=57919
Bug ID: 57919
Summary: Support in-place write when opened from a File
Product: POI
Version: 3.12-FINAL
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: POI Overall
Assignee: [email protected]
Reporter: [email protected]
Because the older POIFSFileSytem only ever supported read or write, and only
read from an InputStream, all the POIDocument classes only supported writing
out to a new stream. When the OOXML support was added, this followed the same
pattern
With most things using NPOIFSFileSystem, which supports in-place write when
using a File, we can revisit this. It should be possible to have POIDocument /
POIXMLDocument classes write in-place if opened from a File, avoiding the need
to do the write-as-new + close + rename shuffle on Windows, amongst other
benefits
The existing write(OutputStream) would remain, both for compatibility and for
those needing to load from streams rather than files, but it should be possible
to add a write() method as well for file-based in-place write. Just needs some
work!
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]