Superflous parameter removed.
This parameter was always true.
Now failing on exception in LineCouterTask.
Using new Java 7 style of resource opening in LineCouterTask.
Replaced two loops with one. Simplieifed some variable names.
Moved writing to stream before reading from it.
Switched LineCounterTask to new Input/Outputstream style. Added documentation.
Made fields private.