HADOOP-11286. Copied LimitInputStream from guava-0.14 to hadoop to avoid issues with newer versions of guava in applications. Contributed by Christopher Tubbs.

(cherry picked from commit 6caa8100d5d2547e34356dc279fd5e65b81a925a)