public void abortCurrentDataTransfer(boolean sendAborCommand) throws IOException, FTPIllegalReplyException {
synchronized (abortLock) {
    if (ongoingDataTransfer && !aborted) {
      if (sendAborCommand) {
        communication.sendFTPCommand("ABOR");
        touchAutoNoopTimer();
        consumeAborCommandReply=true;
      }
      if (dataTransferInputStream != null) {
        try {
          dataTransferInputStream.close();
        }
 catch (        Throwable t) {
          ;
        }
      }
      if (dataTransferOutputStream != null) {
        try {
          dataTransferOutputStream.close();
        }
 catch (        Throwable t) {
          ;
        }
      }
      aborted=true;
    }
  }
}

public void abortCurrentDataTransfer ( boolean sendAborCommand ) throws IOException , FTPIllegalReplyException { synchronized ( abortLock ) { if ( ongoingDataTransfer && ! aborted ) { if ( sendAborCommand ) { communication . sendFTPCommand ( "ABOR" ) ; touchAutoNoopTimer ( ) ; consumeAborCommandReply = true ; } if ( dataTransferInputStream != null ) { try { dataTransferInputStream . close ( ) ; } catch ( Throwable t ) { ; } } if ( dataTransferOutputStream != null ) { try { dataTransferOutputStream . close ( ) ; } catch ( Throwable t ) { ; } } aborted = true ; } } }
if there ' s any ongoing data transfer operation , this method aborts it .
