3 ms·
I never understood why Java never got some nice utility functions for dealing with common stream actions such as looping through an InputStream or slurping a te
by guelo 16y ago
I never understood why Java never got some nice utility functions for dealing with common stream actions such as looping through an InputStream or slurping a text file. Every developer ends up carting around their own version of these functions when they should just be in the standard library. Many complaints about Java's verboseness have to do with this type of boilerplate that could easily be hidden away in utility functions.
- lusis 16y agoIsn't that what Apache Commons is for? It's sad that you have to resort to that but at least someone stepped up to the plate.
- simonista 16y agoutil.Scanner I recently learned about them and they simplify a surprising number of simple parsing tasks.
- electrum 16y agohttp://code.google.com/p/guava-libraries/ http://code.google.com/p/guava-libraries/