View | Details | Raw Unified | Return to bug 56956
Collapse All | Expand All

(-)src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java (-3 / +3 lines)
Lines 167-179 Link Here
167
    /**
167
    /**
168
     * <p>Creates a POIFSFileSystem from an open <tt>FileChannel</tt>. This uses 
168
     * <p>Creates a POIFSFileSystem from an open <tt>FileChannel</tt>. This uses 
169
     *  less memory than creating from an <tt>InputStream</tt>. The stream will
169
     *  less memory than creating from an <tt>InputStream</tt>. The stream will
170
     *  be used in read-write mode.</p>
170
     *  be used in read-only mode.</p>
171
     *  
171
     *  
172
     * <p>Note that with this constructor, you will need to call {@link #close()}
172
     * <p>Note that with this constructor, you will need to call {@link #close()}
173
     *  when you're done to have the underlying Channel closed, as the channel is
173
     *  when you're done to have the underlying Channel closed, as the channel is
174
     *  kept open during normal operation to read the data out.</p> 
174
     *  kept open during normal operation to read the data out.</p> 
175
     *  
175
     *  
176
     * @param channel the FileChannel from which to read and write the data
176
     * @param channel the FileChannel from which to read the data
177
     *
177
     *
178
     * @exception IOException on errors reading, or on invalid data
178
     * @exception IOException on errors reading, or on invalid data
179
     */
179
     */
Lines 180-186 Link Here
180
    public NPOIFSFileSystem(FileChannel channel)
180
    public NPOIFSFileSystem(FileChannel channel)
181
         throws IOException
181
         throws IOException
182
    {
182
    {
183
       this(channel, null, false, false);
183
       this(channel, true);
184
    }
184
    }
185
    
185
    
186
    /**
186
    /**

Return to bug 56956