posted 13 years ago
Unlikely. If you're concerned about this, I'd recommend copying the bytes to a tempfile first. If the transferFrom completes successfully, then close the FileChannel and rename the file to whatever name you originally wanted it to have. If a problem occurs during the transfer, simply delete the tempfile afterwards.