Ah yes! I was looking for a nice way of doing it with guava, but was looking at the wrong class. Splitter was the missing piece. I'll go with that.