|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.umber.core.text.splitters.RegexpExtractor
Text extractor which extracts text from all parenthetical groups defined in the driving regular expression.
Constructor Summary | |
RegexpExtractor(java.lang.String regexp,
boolean isPerLine)
Creates a new instance of RegexpExtractor. |
Method Summary | |
java.lang.String[] |
splitText(java.lang.String text)
Extracts fragments of text from the input text document. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RegexpExtractor(java.lang.String regexp, boolean isPerLine)
regexp
- regular expressionisPerLine
- true if the regular expression should be applied to
each line, or false if it should be applied once to the entire
textMethod Detail |
public java.lang.String[] splitText(java.lang.String text)
This implementation extracts one fragment of text for each parenthetical regular expression group. If the expression has no groups, this method will return an empty array.
splitText
in interface ITextSplitter
text
- input text document
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |