Package cc.mallet.pipe.iterator
Class ParenGroupIterator
- java.lang.Object
-
- cc.mallet.pipe.iterator.ParenGroupIterator
-
- All Implemented Interfaces:
java.util.Iterator<Instance>
public class ParenGroupIterator extends java.lang.Object implements java.util.Iterator<Instance>
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- Version:
- $Id: ParenGroupIterator.java,v 1.1 2007/10/22 21:37:49 mccallum Exp $
- Author:
- Charles Sutton
-
-
Constructor Summary
Constructors Constructor Description ParenGroupIterator(java.io.Reader input)
ParenGroupIterator(java.io.Reader input, char openParen, char closeParen)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Instance
next()
void
remove()
-