@Override public void writeBody(ChannelBuffer buffer) throws UnrecoverablePduException, RecoverablePduException { ChannelBufferUtil.writeNullTerminatedString(buffer, this.messageId); ChannelBufferUtil.writeNullTerminatedString(buffer, this.finalDate); buffer.writeByte(this.messageState); buffer.writeByte(this.errorCode); }
@Override public void readBody(ChannelBuffer buffer) throws UnrecoverablePduException, RecoverablePduException { this.messageId = ChannelBufferUtil.readNullTerminatedString(buffer); this.finalDate = ChannelBufferUtil.readNullTerminatedString(buffer); this.messageState = buffer.readByte(); this.errorCode = buffer.readByte(); }