org.apache.maven.jxr.util
Class SimpleWordTokenizer

java.lang.Object
  extended by 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
 
Constructor Summary
SimpleWordTokenizer()
           
 
Method Summary
static StringEntry[] tokenize(String line)
          Break the given line into multiple StringUtils
static StringEntry[] tokenize(String line, String find)
          Tokenize the given line but only return StringUtils that match the parameter find.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BREAKERS

public static final char[] BREAKERS
Description of the Field

Constructor Detail

SimpleWordTokenizer

public SimpleWordTokenizer()
Method Detail

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 in
find - String to match.


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.