This smells like a hack, this method for reading the whole file. On the other hand it's better than a stupid loop reading 1K bytes at a time and building a StringBuffer.

Add a comment explaining that that's what's going on here.