Esempio n. 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);
 }
Esempio n. 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();
 }