Is it possible to write a program that reads last N lines of a big file that is located on a remote machine (accessible via network) without downloading all the file to local machine? The implementation should be only on local computer, it is not possible to make changes on the remote.

If it is possible how can we do that in Java?