use 'endOffset - startOffset' to calculate the length of ChunkedNioFile
and ChunkedFile