|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umass.cs.mallet.base.pipe.iterator.AbstractPipeInputIterator
edu.umass.cs.mallet.base.pipe.iterator.PatternMatchIterator
Iterates over matching regular expresions. E.g. regexp = Pattern.compile ("
(.+?)
") will extractelements from:
This block is an element
this is notbut this is
| Field Summary |
| Fields inherited from class edu.umass.cs.mallet.base.pipe.iterator.AbstractPipeInputIterator |
parentInstance |
| Constructor Summary | |
PatternMatchIterator(java.lang.CharSequence input,
java.util.regex.Pattern regexp)
|
|
| Method Summary | |
java.lang.String |
getNextElement()
|
boolean |
hasNext()
|
Instance |
nextInstance()
|
| Methods inherited from class edu.umass.cs.mallet.base.pipe.iterator.AbstractPipeInputIterator |
next, remove, setParentInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PatternMatchIterator(java.lang.CharSequence input,
java.util.regex.Pattern regexp)
| Method Detail |
public java.lang.String getNextElement()
public Instance nextInstance()
nextInstance in interface PipeInputIteratornextInstance in class AbstractPipeInputIteratorpublic boolean hasNext()
hasNext in interface java.util.IteratorhasNext in class AbstractPipeInputIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||