If you are a Java developer, and you don’t know about Apache Commons, you should take a minute to check it out. A lot of times when you need to write some mundane code to do something, and you are thinking to yourself, “I’m sure a million other people have had to write this code”, you should take a quick look at commons to see if they did it. A lot of times they have it packaged up in a nice library. One of my favorites is the IOUtils class in commons-io, which can pull an InputStream into a String object in one line of code, but they have a bunch of other stuff that is useful as well.
Apache Commons
Leave a reply