org.apache.maven.jxr.util
Class SimpleWordTokenizer
java.lang.Object
org.apache.maven.jxr.util.SimpleWordTokenizer
public class SimpleWordTokenizer
- extends Object
This is a small and fast word tokenizer. It has different characteristics
from the normal Java tokenizer. It only considers clear words that are only
ended with spaces as strings. EX: "Flight" would be a word but "Flight()"
would not.
Field Summary |
static char[] |
BREAKERS
Description of the Field |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BREAKERS
public static final char[] BREAKERS
- Description of the Field
SimpleWordTokenizer
public SimpleWordTokenizer()
tokenize
public static StringEntry[] tokenize(String line)
- Break the given line into multiple StringUtils
tokenize
public static StringEntry[] tokenize(String line,
String find)
- Tokenize the given line but only return StringUtils that match the parameter
find.
- Parameters:
line
- String to search infind
- String to match.
Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.