private File buildFile(File file,String fileName,String type){
  StringBuilder fileNameBuilder=new StringBuilder();
  fileNameBuilder.append(file.getPath());
  fileNameBuilder.append(File.separator);
  fileNameBuilder.append(type);
  fileNameBuilder.append(fileName);
  return new File(fileNameBuilder.toString());
}

private File buildFile ( File file , String fileName , String type ) { StringBuilder fileNameBuilder = new StringBuilder ( ) ; fileNameBuilder . append ( file . getPath ( ) ) ; fileNameBuilder . append ( File . separator ) ; fileNameBuilder . append ( type ) ; fileNameBuilder . append ( fileName ) ; return new File ( fileNameBuilder . toString ( ) ) ; }
builds the cached file method into the disk cache .
