How can I change the temp directory in File.createTempFile?
<p>I'm basically just doing some tests to figure out a good way to write large amounts of data to a file.  I found this great answer <a href="http://stackoverflow.com/questions/1062113/fastest-way-to-write-huge-data-in-text-file-java">Fastest way to write huge data in text file Java</a> and I'm playing around with the script but it seems to be writing to /tmp instead of the directory I'm actually running the program in.</p>

<p>This normally wouldn't bother me, but I'm using EC2 and I've read that the boot storage is not as fast as the ephemeral but because its writing to the boot drive I cannot test if ephemeral is indeed faster or not.</p>

<p>Any suggestions of how to change the temp directory for File?</p>
