In Java FileChannel is an abstract class for reading, writing, mapping, and manipulating a file
In Java FileChannel
is an abstract class for reading, writing, mapping, and manipulating a file.
A file channel is a SeekableByteChannel
that is connected to a file.
It has a current position within its file which can be both queried and modified.
The file itself contains a variable-length sequence of bytes that can be read and written and whose current size can be queried.
The size of the file increases when bytes are written beyond its current size; the size of the file decreases when it is truncated.
The file may also have some associated metadata such as access permissions, content type, and last-modification time; this class does not define methods for metadata access.