Performance improvement.
The lineBuffer resizes itself to the amount available to read from the input stream.
Improving javadoc