code: @Override
      public int write(SegmentIndexBuffer sib, File sibFile) throws IOException {
          create(sibFile);
          
          RandomAccessFile raf = new RandomAccessFile(sibFile, "rw");
          FileChannel channel = raf.getChannel();
          
          writeVersion(channel);
          int length = sib.write(channel);
          length += STORAGE_VERSION_LENGTH;
          
          raf.setLength(length);
          channel.force(true);
          channel.close();
          raf.close();
          
          if(_logger.isTraceEnabled()) {
              _logger.trace("write " + sibFile.getAbsolutePath());
          }
          
          return length;
      }
docs: Writes to the specified segment index buffer file.
  
  @param sib     - the segment index buffer
  @param sibFile - the segment index buffer file to write to
  @throws IOException