public String[] lookup(String word,boolean generate){
  StringBuilder buffer2=new StringBuilder();
  List<String> results=new ArrayList<String>();
  lookup(word,0,0,generate,buffer2,results);
  String[] resultArray=new String[results.size()];
  resultArray=results.toArray(resultArray);
  return resultArray;
}

public String [ ] lookup ( String word , boolean generate ) { StringBuilder buffer2 = new StringBuilder ( ) ; List < String > results = new ArrayList < String > ( ) ; lookup ( word , 0 , 0 , generate , buffer2 , results ) ; String [ ] resultArray = new String [ results . size ( ) ] ; resultArray = results . toArray ( resultArray ) ; return resultArray ; }
look up a word in the fst . this method is thread - safe .
