private OMMapBufferEntry mapNew ( final OFileMMap file , final long beginOffset ) throws IOException { return new OMMapBufferEntry ( file , file . map ( beginOffset , file . getFileSize ( ) - ( int ) beginOffset ) , beginOffset , file . getFileSize ( ) - ( int ) beginOffset ) ; }
This method maps new part of file if not all file content is mapped .