protected synchronized long numchunks() throws IOException {
  if (backingRandomAccessFile.length() <= fHeader.headerSize()) {
    return 0;
  }
 else {
    long len=backingRandomAccessFile.length() - fHeader.headerSize();
    return (((len % CHUNK_ENC_SIZE) == 0) ? (len / CHUNK_ENC_SIZE) : ((len / CHUNK_ENC_SIZE) + 1));
  }
}

protected synchronized long numchunks ( ) throws IOException { if ( backingRandomAccessFile . length ( ) <= fHeader . headerSize ( ) ) { return 0 ; } else { long len = backingRandomAccessFile . length ( ) - fHeader . headerSize ( ) ; return ( ( ( len % CHUNK_ENC_SIZE ) == 0 ) ? ( len / CHUNK_ENC_SIZE ) : ( ( len / CHUNK_ENC_SIZE ) + 1 ) ) ; } }
returns number of chunks
