示例#1
0
 @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);
 }
示例#2
0
 @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();
 }