public interface PDUReader
InputStream.| Modifier and Type | Method and Description |
|---|---|
byte[] |
readPDU(InputStream in,
Command pduHeader)
Read all smpp pdu (excluding the command header) with specified pdu
header.
|
byte[] |
readPDU(InputStream in,
int commandLength,
int commandId,
int commandStatus,
int sequenceNumber)
Read all smpp pdu (excluding the command header) with specified pdu
header values.
|
Command |
readPDUHeader(DataInputStream in)
Read the pdu header.
|
Command readPDUHeader(DataInputStream in) throws InvalidCommandLengthException, IOException
InvalidCommandLengthExceptionin - is the input stream of the pdu.InvalidCommandLengthException - if command_length is to short.IOException - if an I/O error occurs.byte[] readPDU(InputStream in, Command pduHeader) throws IOException
in - is input stream of the pdu (the source).pduHeader - is the pdu header.IOException - if an I/O error occurs.byte[] readPDU(InputStream in, int commandLength, int commandId, int commandStatus, int sequenceNumber) throws IOException
in - is the input stream of the pdu (the source).commandLength - is the command length of smpp pdu command.commandId - is id of smpp command.commandStatus - is status of smpp command.sequenceNumber - is sequence number of smpp command.IOException - if an I/O error occurs.