IteratorReader — streaming character data from an iterator
Recently when plugging two components of a high-throughput web service together, I ran into a snag. One component (a data repository) exposes an Iterator for pulling XML-formatted records out of it one...
View ArticleRetriableTask — a generic wrapper for retrying operations in Java
A couple of times recently I’ve needed to write methods that retry up to n times if an error occurs, and surprisingly, couldn’t find any standard patterns to accomplish this on the web. So I wrote my...
View ArticleNoSuchMethodError when running JUnit tests in Eclipse
This is worth a quick post as I couldn’t find a solution on Google and it took me an hour or two of fiddling. I have a Maven project, call it frontend-war, which contains the main service code for...
View ArticleBest new feature in Eclipse 3.6 Helios
… is hidden away on the last tab of the Java Formatting Profile editor (Preferences -> Java -> Code Style -> Formatter -> Edit). They’ve finally (after nearly six years) added the ability...
View Article