title: Can't continously read/monitor remote file
body: <p>I'm using JSCH to try and read a log file on a separate server that is constantly being updated. I can pick up whatever is currently in the file just fine, but once I get to the end of the file my delay occurs but no new lines get picked up and my delay print statements continue to loop (I verify by running a tail on the log alongside my program). I'd appreciate it if anybody could point out something in my code that might be wrong or missing, or possibly suggest a better approach. </p>
  
  <pre><code>InputStream stream = sftpClient.get(filename);
  BufferedReader br = new BufferedReader(new InputStreamReader(stream));
  String line;
  while (true)
  {
      try
      {
          line = br.readLine();
          if (line == null)
          {
              System.out.println("End of file reached. Sleeping..");
              Thread.sleep(sleepTime);
              System.out.println("Retrying for more data..");
          }
          else
          {
              //do something with line, print for now.
              System.out.println(line);
          }
      }
      catch (Exception e)
      {
          System.out.println("Something went wrong: " + e);
      }
  }
  </code></pre>