Search in sources :

Example 21 with ByteBuffer

use of org.smpp.util.ByteBuffer in project opensmpp by OpenSmpp.

the class ShortMessage method getData.

/**
 * Returns the sequence of octets generated from the message according the encoding
 * provided.
 * @return the bytes generated from the message
 */
public ByteBuffer getData() {
    ByteBuffer buffer = null;
    buffer = new ByteBuffer(messageData);
    return buffer;
}
Also used : ByteBuffer(org.smpp.util.ByteBuffer)

Aggregations

ByteBuffer (org.smpp.util.ByteBuffer)21 Test (org.junit.Test)9 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)2 PDU (org.smpp.pdu.PDU)2 UnknownCommandIdException (org.smpp.pdu.UnknownCommandIdException)2 HeaderIncompleteException (org.smpp.pdu.HeaderIncompleteException)1 MessageIncompleteException (org.smpp.pdu.MessageIncompleteException)1 PDUException (org.smpp.pdu.PDUException)1 NotEnoughDataInByteBufferException (org.smpp.util.NotEnoughDataInByteBufferException)1