private void calculateChecksumOverPage(ByteBuffer page){
  page.putInt(OggPageHeader.FIELD_PAGE_CHECKSUM_POS,0);
  byte[] crc=OggCRCFactory.computeCRC(page.array());
  for (int i=0; i < crc.length; i++) {
    page.put(OggPageHeader.FIELD_PAGE_CHECKSUM_POS + i,crc[i]);
  }
  page.rewind();
}

private void calculateChecksumOverPage ( ByteBuffer page ) { page . putInt ( OggPageHeader . FIELD_PAGE_CHECKSUM_POS , 0 ) ; byte [ ] crc = OggCRCFactory . computeCRC ( page . array ( ) ) ; for ( int i = 0 ; i < crc . length ; i ++ ) { page . put ( OggPageHeader . FIELD_PAGE_CHECKSUM_POS + i , crc [ i ] ) ; } page . rewind ( ) ; }
calculate checksum over the page
