com.java4less.ocr.docparser
Class TextFinder
java.lang.Object
com.java4less.ocr.docparser.TextFinder
public class TextFinder
- extends java.lang.Object
class used to find string in a line. The string does not have to exactly match the search string, it allows for small mistakes, for example which search for "London", the value "Landon" would also return a match.
Method Summary |
static void |
main(java.lang.String[] args)
|
MatchedValue |
matchText(java.lang.String toFind,
java.lang.String data)
try to find the toFind value in the data parameter |
MatchedValue |
matchText(java.lang.String toFind,
java.lang.String data,
int start)
try to find the toFind value in the data parameter, starting at possition start |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextFinder
public TextFinder()
matchText
public MatchedValue matchText(java.lang.String toFind,
java.lang.String data)
- try to find the toFind value in the data parameter
- Parameters:
toFind
- data
-
- Returns:
matchText
public MatchedValue matchText(java.lang.String toFind,
java.lang.String data,
int start)
- try to find the toFind value in the data parameter, starting at possition start
- Parameters:
toFind
- data
- start
-
- Returns:
main
public static void main(java.lang.String[] args)