code: public String getChecksum(String algorithm,
                                String path)
      throws ClientException, ServerException, IOException {
          return getChecksum(algorithm,0,-1,path);
      }
docs: GridFTP v2 CKSM command for the whole file
  @param  algorithm ckeckum alorithm
  @param  path
  @return ckecksum value returned by the server
  @throws org.globus.ftp.exception.ClientException
  @throws org.globus.ftp.exception.ServerException
  @throws java.io.IOException