You can retrieve the byte size of a file using the Sftp#getFilesize method.
Example
// get size of file image.gif in bytes
long filesize = sftp.getFilesize("image.gif");