net.sf.dict4j.command
Class DefineCommand
java.lang.Object
net.sf.dict4j.command.AbstractCommand
net.sf.dict4j.command.AbstractDataCommand
net.sf.dict4j.command.DefineCommand
- All Implemented Interfaces:
- Command, DataCommand
public class DefineCommand
- extends AbstractDataCommand
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DefineCommand
public DefineCommand(java.lang.String word,
java.lang.String database)
DefineCommand
public DefineCommand(java.lang.String word)
receiveBody
protected void receiveBody(DictTransport transport)
- Overrides:
receiveBody
in class AbstractDataCommand
parseResponseHeader
protected void parseResponseHeader(java.lang.String header)
- Overrides:
parseResponseHeader
in class AbstractCommand
checkResponseCodeForServerException
protected void checkResponseCodeForServerException(ResponseEnum responseEnum)
throws DictServerException
- Overrides:
checkResponseCodeForServerException
in class AbstractCommand
- Throws:
DictServerException
getResponseHeaderCodes
protected ResponseEnum[] getResponseHeaderCodes()
- Specified by:
getResponseHeaderCodes
in class AbstractCommand
getString
protected java.lang.String getString()
- Specified by:
getString
in class AbstractCommand
getDefinitions
public java.util.List<Definition> getDefinitions()
doesResponseHaveBody
protected boolean doesResponseHaveBody()
- Overrides:
doesResponseHaveBody
in class AbstractDataCommand