Package cc.mallet.pipe.iterator
Class PatternMatchIterator
- java.lang.Object
-
- cc.mallet.pipe.iterator.PatternMatchIterator
-
- All Implemented Interfaces:
java.util.Iterator<Instance>
public class PatternMatchIterator extends java.lang.Object implements java.util.Iterator<Instance>
Iterates over matching regular expresions. E.g. regexp = Pattern.compile ("(.+?)
") will extractelements from:
This block is an element
this is notbut this is
-
-
Constructor Summary
Constructors Constructor Description PatternMatchIterator(java.lang.CharSequence input, java.util.regex.Pattern regexp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getNextElement()
boolean
hasNext()
Instance
next()
void
remove()
-