title: check if file exist on remote server using Java code
body: <p>I wanted to write sample code which will connect to remote server and check if the given file exist on that server.
  I have IP address, username, password and port.
  Is there any way I can check if the file exist on remote server?
  I know this can be done using third party library.
  But I am looking using java APi's
  Could you please help me?</p>