public class TextBlockIterator extends com.google.common.collect.AbstractIterator<String>
| Constructor and Description |
|---|
TextBlockIterator(BufferedReader reader)
Constructs a
TextBlockIterator using a newline as the
default break. |
TextBlockIterator(BufferedReader reader,
String blockBreak) |
TextBlockIterator(Iterable<String> iter)
Constructs a
TextBlockIterator over the strings returned by
iter, using the default block break. |
TextBlockIterator(Iterable<String> iter,
String blockBreak)
Constructs a
TextBlockIterator over the strings returned by
iter. |
TextBlockIterator(Iterator<String> lineIter)
Constructs a
TextBlockIterator over the strings returned by
lineIter, using the default block break. |
TextBlockIterator(Iterator<String> lineIter,
String blockBreak)
Constructs a
TextBlockIterator over the strings returned by
lineIter. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
computeNext() |
public TextBlockIterator(BufferedReader reader, String blockBreak)
reader - the reader to extract blocks from.blockBreak - the value that represents a block break.public TextBlockIterator(BufferedReader reader)
TextBlockIterator using a newline as the
default break.reader - the reader to extract blocks from.public TextBlockIterator(Iterator<String> lineIter, String blockBreak)
TextBlockIterator over the strings returned by
lineIter.lineIter - blockBreak - public TextBlockIterator(Iterator<String> lineIter)
TextBlockIterator over the strings returned by
lineIter, using the default block break.lineIter - public TextBlockIterator(Iterable<String> iter, String blockBreak)
TextBlockIterator over the strings returned by
iter.iter - blockBreak - Copyright © 2010-2013 University of Washington CSE. All Rights Reserved.