[#1940] Add javadoc to explain how the FileChannel is closed when using DefaultFileRegion
This commit is contained in:
parent
208411f9a9
commit
de2c6acecf
@ -25,6 +25,9 @@ import java.nio.channels.WritableByteChannel;
|
||||
|
||||
/**
|
||||
* Default {@link FileRegion} implementation which transfer data from a {@link FileChannel}.
|
||||
*
|
||||
* Be aware that the {@link FileChannel} will be automatically closed once {@link #refCnt()} returns
|
||||
* {@code 0}.
|
||||
*/
|
||||
public class DefaultFileRegion extends AbstractReferenceCounted implements FileRegion {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user