edu.umd.hooka
Class VocabServerClient

java.lang.Object
  extended by edu.umd.hooka.VocabServerClient
All Implemented Interfaces:
Vocab

public class VocabServerClient
extends Object
implements Vocab


Field Summary
 
Fields inherited from interface edu.umd.hooka.Vocab
MAX_VOCAB_INDEX
 
Constructor Summary
VocabServerClient(String host, int port)
           
 
Method Summary
 int addOrGet(String word)
           
 String get(int index)
           
 int get(String word)
           
 int remoteAddOrGet(String word)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VocabServerClient

public VocabServerClient(String host,
                         int port)
                  throws IOException
Throws:
IOException
Method Detail

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