com.blackledge.david.tivo.widgets.typo
Class WordList

java.lang.Object
  extended by com.blackledge.david.tivo.widgets.typo.WordList

public class WordList
extends Object


Constructor Summary
WordList()
           
 
Method Summary
static List<Character> getSuggestionLetters(String word)
           
static List<String> getSuggestions(String word)
           
static String getWord(int index)
           
static int getWordCount()
           
static void load(File file)
          Adds another file's contents to the word list.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordList

public WordList()
Method Detail

load

public static void load(File file)
                 throws IOException
Adds another file's contents to the word list. All blank lines and lines containing spaces are ignored.

Parameters:
file -
Throws:
IOException

getSuggestions

public static List<String> getSuggestions(String word)

getSuggestionLetters

public static List<Character> getSuggestionLetters(String word)

getWord

public static String getWord(int index)

getWordCount

public static int getWordCount()

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException