protected synchronized long lastchunkpointer() throws IOException {
  long len=backingRandomAccessFile.length();
  if (len < fHeader.headerSize()) {
    return -1;
  }
 else {
    len-=fHeader.headerSize();
    int offset=(int)(len % CHUNK_ENC_SIZE);
    if ((offset == 0) && (len == 0)) {
      return 0;
    }
 else     if ((len != 0) && (offset == 0)) {
      return ((len / CHUNK_ENC_SIZE) - 1);
    }
 else {
      return (len / CHUNK_ENC_SIZE);
    }
  }
}

protected synchronized long lastchunkpointer ( ) throws IOException { long len = backingRandomAccessFile . length ( ) ; if ( len < fHeader . headerSize ( ) ) { return - 1 ; } else { len -= fHeader . headerSize ( ) ; int offset = ( int ) ( len % CHUNK_ENC_SIZE ) ; if ( ( offset == 0 ) && ( len == 0 ) ) { return 0 ; } else if ( ( len != 0 ) && ( offset == 0 ) ) { return ( ( len / CHUNK_ENC_SIZE ) - 1 ) ; } else { return ( len / CHUNK_ENC_SIZE ) ; } } }
always points to the respective last chunk
