Пример #1
0
 public void setBody(ByteBuffer buffer)
     throws NotEnoughDataInByteBufferException, TerminatingZeroNotFoundException, PDUException {
   setServiceType(buffer.removeCString());
   setMessageId(buffer.removeCString());
   sourceAddr.setData(buffer); // ?
   destAddr.setData(buffer); // ?
 }
Пример #2
0
 public void setBody(ByteBuffer buffer)
     throws NotEnoughDataInByteBufferException, TerminatingZeroNotFoundException, PDUException {
   setServiceType(buffer.removeCString());
   sourceAddr.setData(buffer); // ?
   destAddr.setData(buffer); // ?
   setEsmClass(buffer.removeByte());
   setProtocolId(buffer.removeByte());
   setPriorityFlag(buffer.removeByte());
   setScheduleDeliveryTime(buffer.removeCString());
   setValidityPeriod(buffer.removeCString());
   setRegisteredDelivery(buffer.removeByte());
   setReplaceIfPresentFlag(buffer.removeByte());
   setDataCoding(buffer.removeByte());
   setSmDefaultMsgId(buffer.removeByte());
   setSmLength(decodeUnsigned(buffer.removeByte()));
   shortMessage.setData(buffer.removeBuffer(getSmLength()));
 }