Fix compiler warning

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Do away with DOS-style line endings

It is really the 21st century now, so we can safely kill that awful
DOS heritage.

(Use 'git show -w <commit>' to verify that it really only changes
whitespace.)

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Make sure to close an input stream

Closing the stream in the called method is not enough because the
method might change, or not even be found. Therefore, make sure the
stream gets closed; multiple calls to close() on the same stream do
not cause an exception, after all.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Merge pull request #18 from dscho/resource-leak

Fix resource leak warning, generics warning and remove DOS line endings.