org.jscience.linguistics.dict
Class DictClient

java.lang.Object
  extended by org.jscience.linguistics.dict.DictClient

public class DictClient
extends java.lang.Object

Zakladni klient pro DICT dle RFC2229 implementovano SHOW DB, SHOW STRAT, DEFINE, MATCH, QUIT


Constructor Summary
DictClient(java.lang.String serverName)
          Creates a new DictClient object.
DictClient(java.lang.String serverName, int serverPort)
          Creates a new DictClient object.
 
Method Summary
 java.lang.String getDatabaseList()
          DOCUMENT ME!
 java.lang.String getDefinition(java.lang.String db, java.lang.String word)
          DOCUMENT ME!
 java.lang.String getStrategyList()
          DOCUMENT ME!
 java.lang.String getWords(java.lang.String db, java.lang.String strat, java.lang.String word)
          DOCUMENT ME!
static void main(java.lang.String[] args)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictClient

public DictClient(java.lang.String serverName,
                  int serverPort)
Creates a new DictClient object.

Parameters:
serverName - DOCUMENT ME!
serverPort - DOCUMENT ME!

DictClient

public DictClient(java.lang.String serverName)
Creates a new DictClient object.

Parameters:
serverName - DOCUMENT ME!
Method Detail

main

public static void main(java.lang.String[] args)
DOCUMENT ME!

Parameters:
args - DOCUMENT ME!

getDatabaseList

public java.lang.String getDatabaseList()
                                 throws DictException
DOCUMENT ME!

Returns:
String seznam databazi na dict serveru
Throws:
DictException

getStrategyList

public java.lang.String getStrategyList()
                                 throws DictException
DOCUMENT ME!

Returns:
String seznam moznosti vyhledavani pro MATCH
Throws:
DictException

getDefinition

public java.lang.String getDefinition(java.lang.String db,
                                      java.lang.String word)
                               throws DictException
DOCUMENT ME!

Parameters:
db - prohledavana databaze
word - hledane slovo
Returns:
String vysledek vyjledavani DEFINE
Throws:
DictException

getWords

public java.lang.String getWords(java.lang.String db,
                                 java.lang.String strat,
                                 java.lang.String word)
                          throws DictException
DOCUMENT ME!

Parameters:
db - prohledavana databaze
strat - DOCUMENT ME!
word - hledane slovo
Returns:
String vysledek vyjledavani DEFINE
Throws:
DictException