From: PJ Fanning Date: Sat, 9 Oct 2021 13:55:04 +0000 (+0000) Subject: [bug-64542] allow file channel closing to be controlled by calling code X-Git-Tag: REL_5_2_0~415 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=35ce12035ab617a54239d109b2e235f77133e3a1;p=poi.git [bug-64542] allow file channel closing to be controlled by calling code git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894071 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/poi/src/main/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java b/poi/src/main/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java index e7ff65e01e..3f5e8f4507 100644 --- a/poi/src/main/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java +++ b/poi/src/main/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java @@ -208,8 +208,8 @@ public class POIFSFileSystem extends BlockStore } /** - *

Creates a POIFSFileSystem from an open FileChannel. This uses - * less memory than creating from an InputStream.

+ *

Creates a POIFSFileSystem from an open {@code FileChannel}. This uses + * less memory than creating from an {@code InputStream}.

* *

Note that with this constructor, you will need to call {@link #close()} * when you're done to have the underlying resources closed. The closeChannel