Google Collections to the rescue

2008年07月23日 21:09 • 查看 20 次 • 打印本文

A few days ago, I was writing a piece of code that turned a line at a time into an Object. And it was using iterators. I had a RecordStream, which wrapped a LineStream (just a thin veneer over LineNumberReader).

Then I discovered that there was a terminating record at the end of each file. And it was in a completely different format to all the other lines. Bother.

查看原文 »

评论

发表评论