SMAT - 2010-06-21

I am trying to SFTP few files to server using JSCH library. There is a scenario when the connection breaks in between and only partial file is transferred to server. Is there any way out that the partial file is not transferred to server when such an exception occurs  or the partial file transferred is deleted. Please reply ASAP.