create temporary files using standard Java API