public class AggreGateCommandParser extends SimpleCommandParser<IncomingAggreGateCommand>
| Modifier and Type | Field and Description |
|---|---|
protected CommandData |
commandData |
byte[] |
decompressor_buffer |
buffer, channel| Constructor and Description |
|---|
AggreGateCommandParser(java.nio.channels.ReadableByteChannel channel) |
AggreGateCommandParser(java.nio.channels.ReadableByteChannel channel,
byte startChar,
byte endChar) |
| Modifier and Type | Method and Description |
|---|---|
protected IncomingAggreGateCommand |
buildCommand() |
protected IncomingAggreGateCommand |
buildCommandFrom(CommandData commandData) |
protected boolean |
commandEnded(byte cur) |
protected IncomingAggreGateCommand |
createCommandFromBufferContent() |
void |
reset() |
void |
setVersion(ProtocolVersion version) |
clearCommand, isFullcommandCompleted, getChannel, readCommandaddData, clearData, getData, getListener, setListener, toStringpublic final byte[] decompressor_buffer
protected CommandData commandData
public AggreGateCommandParser(java.nio.channels.ReadableByteChannel channel)
public AggreGateCommandParser(java.nio.channels.ReadableByteChannel channel,
byte startChar,
byte endChar)
protected IncomingAggreGateCommand buildCommand() throws SyntaxErrorException
buildCommand in class SimpleCommandParser<IncomingAggreGateCommand>SyntaxErrorExceptionprotected boolean commandEnded(byte cur)
commandEnded in class SimpleCommandParser<IncomingAggreGateCommand>public void reset()
reset in interface CommandParser<IncomingAggreGateCommand>reset in class AbstractCommandParser<IncomingAggreGateCommand>protected IncomingAggreGateCommand createCommandFromBufferContent() throws SyntaxErrorException
createCommandFromBufferContent in class SimpleCommandParser<IncomingAggreGateCommand>SyntaxErrorExceptionpublic void setVersion(ProtocolVersion version)
protected IncomingAggreGateCommand buildCommandFrom(CommandData commandData) throws SyntaxErrorException
SyntaxErrorException