Added LineIterator factory methods.