Java - read a single line file
<p>Let's say we have a single line 10 GB file and we need to do some operations on it (it could be just random letters, arggzdfnbnipntrs).</p>

<p>As an example, we could be asked to check if such line is a palindrome, however we cannot load it fully in memory. We'd need to load the first character and compare it to the last, and so on. How is this done in Java? (including UTF-8 support)</p>