private void initialize(){
  if (!cacheDir.exists()) {
    cacheDir.mkdirs();
  }
  File[] files=cacheDir.listFiles();
  if (files == null) {
    return;
  }
  for (int i=0; i < files.length; i++) {
    File file=files[i];
    if (file.length() == 0) {
      file.delete();
    }
 else {
      CacheSpan span=CacheSpan.createCacheEntry(file);
      if (span == null) {
        file.delete();
      }
 else {
        addSpan(span);
      }
    }
  }
}

private void initialize ( ) { if ( ! cacheDir . exists ( ) ) { cacheDir . mkdirs ( ) ; } File [ ] files = cacheDir . listFiles ( ) ; if ( files == null ) { return ; } for ( int i = 0 ; i < files . length ; i ++ ) { File file = files [ i ] ; if ( file . length ( ) == 0 ) { file . delete ( ) ; } else { CacheSpan span = CacheSpan . createCacheEntry ( file ) ; if ( span == null ) { file . delete ( ) ; } else { addSpan ( span ) ; } } } }
ensures that the cache ' s in - memory representation has been initialized .
