/** * Secret: input mechanism, from file to storage. * * @author Alexander Schaap * * @param * type of the word * */ public interface InputInterface> { /** * Parses a file at the given location using the specified wordCommand to * generate words of type T, and stores the parsed contents into the given * storage. * * @param filename * location of file to be parsed */ public void parse(String filename); /** * Sets the WordCommand to be used when parsing. * * @param wc * command to generate words of a type specified by the caller of * parse */ public void setWordCommand(WordCommandInterface wc); /** * Sets the LineStorage to store parsed lines into. * * @param ls * LineStorage instance to be used */ public void connect( StorageInterface>> ls); }