If (and it's a big if) XCRC is supported by the server, SSLFTPClient and ProFTPClient calculate the CRC locally and compare it to the CRC returned from the server.
Only supported for FTPS and FTP, not SFTP, via setTransferIntegrityCheck(true).
If XCRC is not supported the size is used instead.