edu.umd.hooka
Class VocabServerClient
java.lang.Object
edu.umd.hooka.VocabServerClient
- All Implemented Interfaces:
- Vocab
public class VocabServerClient
- extends Object
- implements Vocab
VocabServerClient
public VocabServerClient(String host,
int port)
throws IOException
- Throws:
IOException
remoteAddOrGet
public int remoteAddOrGet(String word)
addOrGet
public int addOrGet(String word)
- Specified by:
addOrGet in interface Vocab
get
public int get(String word)
- Specified by:
get in interface Vocab
get
public String get(int index)
- Specified by:
get in interface Vocab
size
public int size()
- Specified by:
size in interface Vocab