net.sf.dict4j.command
Class MatchCommand
java.lang.Object
   net.sf.dict4j.command.AbstractCommand
net.sf.dict4j.command.AbstractCommand
       net.sf.dict4j.command.AbstractDataCommand
net.sf.dict4j.command.AbstractDataCommand
           net.sf.dict4j.command.AbstractListDataCommand
net.sf.dict4j.command.AbstractListDataCommand
               net.sf.dict4j.command.MatchCommand
net.sf.dict4j.command.MatchCommand
- All Implemented Interfaces: 
- Command, DataCommand
- public class MatchCommand 
- extends AbstractListDataCommand
MATCH database strategy word
 
 This command searches an index for the dictionary, and reports words which were found using a particular strategy.
 Not all strategies are useful for all dictionaries, and some dictionaries may support additional search strategies
 (e.g., reverse lookup)
 
 
 
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
 
MatchCommand
public MatchCommand(java.lang.String database,
                    java.lang.String strategy,
                    java.lang.String word)
MatchCommand
public MatchCommand(Database database,
                    Strategy strategy,
                    java.lang.String word)
MatchCommand
public MatchCommand(Strategy strategy,
                    java.lang.String word)
MatchCommand
public MatchCommand(Database database,
                    java.lang.String word)
MatchCommand
public MatchCommand(java.lang.String word)
parseResponseText
protected void parseResponseText()
- 
- Overrides:
- parseResponseTextin class- AbstractListDataCommand
 
- 
 
parseResponseHeader
protected void parseResponseHeader(java.lang.String header)
- 
- Overrides:
- parseResponseHeaderin class- AbstractCommand
 
- 
 
doesResponseHaveBody
protected boolean doesResponseHaveBody()
- 
- Overrides:
- doesResponseHaveBodyin class- AbstractDataCommand
 
- 
 
getResponseHeaderCodes
protected ResponseEnum[] getResponseHeaderCodes()
- 552 No match
 152 n matches found - text follows
 
- 
- Specified by:
- getResponseHeaderCodesin class- AbstractCommand
 
- 
- Returns:
- array of valid response codes
 
checkResponseCodeForServerException
protected void checkResponseCodeForServerException(ResponseEnum responseEnum)
                                            throws DictServerException
- 
- Overrides:
- checkResponseCodeForServerExceptionin class- AbstractCommand
 
- 
- Throws:
- DictServerException
 
getString
protected java.lang.String getString()
- 
- Specified by:
- getStringin class- AbstractCommand
 
- 
 
getDatabaseWordList
public java.util.List<DatabaseWord> getDatabaseWordList()
- 
 
getNumberOfMatchesFound
public int getNumberOfMatchesFound()
-