edu.umass.cs.mallet.base.pipe.iterator
Class ParenGroupIterator
java.lang.Object
edu.umass.cs.mallet.base.pipe.iterator.AbstractPipeInputIterator
edu.umass.cs.mallet.base.pipe.iterator.ParenGroupIterator
- All Implemented Interfaces:
- java.util.Iterator, PipeInputIterator
- public class ParenGroupIterator
- extends AbstractPipeInputIterator
Iterator that takes a Reader, breaks up the input into
top-level parenthesized expressions. For example,
in the input (a (a b) c) f (d e), there
are two top-level expressions '(a (a b) c)' and '(d e)'.
Text that is not within parentheses is ignored.
Created: Thu Feb 26 13:45:43 2004
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParenGroupIterator
public ParenGroupIterator(java.io.Reader input)
ParenGroupIterator
public ParenGroupIterator(java.io.Reader input,
char openParen,
char closeParen)
nextInstance
public Instance nextInstance()
- Specified by:
nextInstance
in interface PipeInputIterator
- Specified by:
nextInstance
in class AbstractPipeInputIterator
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
- Specified by:
hasNext
in class AbstractPipeInputIterator