private void writeDataUptoIncludingIlst(FileChannel fileReadChannel,FileChannel fileWriteChannel,int oldIlstSize,int startIlstWithinFile,ByteBuffer rawIlstData) throws IOException {
  fileReadChannel.position(0);
  fileWriteChannel.transferFrom(fileReadChannel,0,startIlstWithinFile);
  fileWriteChannel.position(startIlstWithinFile);
  fileWriteChannel.write(rawIlstData);
  fileReadChannel.position(startIlstWithinFile + oldIlstSize);
}

private void writeDataUptoIncludingIlst ( FileChannel fileReadChannel , FileChannel fileWriteChannel , int oldIlstSize , int startIlstWithinFile , ByteBuffer rawIlstData ) throws IOException { fileReadChannel . position ( 0 ) ; fileWriteChannel . transferFrom ( fileReadChannel , 0 , startIlstWithinFile ) ; fileWriteChannel . position ( startIlstWithinFile ) ; fileWriteChannel . write ( rawIlstData ) ; fileReadChannel . position ( startIlstWithinFile + oldIlstSize ) ; }
write the data including new ilst < p > can be used as long as we dont have to adjust the size of moov header
