private void writeFileHeader() throws IOException {
  ByteBuffer buf=ByteBuffer.allocate((int)HEADER_LENGTH);
  buf.put(MAGIC_NUMBER);
  buf.put(FILE_FORMAT_VERSION);
  buf.putInt(bucketCount);
  buf.putInt(bucketSize);
  buf.putInt(itemCount);
  buf.rewind();
  nioFile.write(buf,0L);
}

private void writeFileHeader ( ) throws IOException { ByteBuffer buf = ByteBuffer . allocate ( ( int ) HEADER_LENGTH ) ; buf . put ( MAGIC_NUMBER ) ; buf . put ( FILE_FORMAT_VERSION ) ; buf . putInt ( bucketCount ) ; buf . putInt ( bucketSize ) ; buf . putInt ( itemCount ) ; buf . rewind ( ) ; nioFile . write ( buf , 0L ) ; }
writes the bucket count , bucket size and item count to the file header .
