private void writeLargeDataToFile(File file,int size) throws FileNotFoundException, IOException {
  FileOutputStream fos=new FileOutputStream(file);
  byte[] buf=new byte[size];
  try {
    fos.write(buf);
  }
  finally {
    fos.close();
  }
}

private void writeLargeDataToFile ( File file , int size ) throws FileNotFoundException , IOException { FileOutputStream fos = new FileOutputStream ( file ) ; byte [ ] buf = new byte [ size ] ; try { fos . write ( buf ) ; } finally { fos . close ( ) ; } }
initializes large test file .
