|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsmpp.DefaultPDUReader
public class DefaultPDUReader
Default implementation of PDUReader.
| Constructor Summary | |
|---|---|
DefaultPDUReader()
|
|
| Method Summary | |
|---|---|
byte[] |
readPDU(java.io.DataInputStream in,
Command pduHeader)
Read all smpp pdu (excluding the command header) with specified pdu header. |
byte[] |
readPDU(java.io.DataInputStream in,
int commandLength,
int commandId,
int commandStatus,
int sequenceNumber)
Read all smpp pdu (excluding the command header) with specified pdu header values. |
Command |
readPDUHeader(java.io.DataInputStream in)
Read the pdu header. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultPDUReader()
| Method Detail |
|---|
public Command readPDUHeader(java.io.DataInputStream in)
throws InvalidCommandLengthException,
java.io.IOException
PDUReaderInvalidCommandLengthException
readPDUHeader in interface PDUReaderin - is the input stream of the pdu.
InvalidCommandLengthException - if command_length is to short.
java.io.IOException - if an I/O error occurs.
public byte[] readPDU(java.io.DataInputStream in,
Command pduHeader)
throws java.io.IOException
PDUReader
readPDU in interface PDUReaderin - is input stream of the pdu (the source).pduHeader - is the pdu header.
java.io.IOException - if an I/O error occurs.
public byte[] readPDU(java.io.DataInputStream in,
int commandLength,
int commandId,
int commandStatus,
int sequenceNumber)
throws java.io.IOException
PDUReader
readPDU in interface PDUReaderin - 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.
java.io.IOException - if an I/O error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||