public class PDUReader
extends java.lang.Thread
| Constructor and Description |
|---|
PDUReader(INetworkAgent objINetworkAgent)
Instantiates a new PDU reader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAssociatePDUReceiver(IAssociatePDUReceiver receiver)
Adds the associate pdu receiver.
|
void |
addConnectionListener(IConnectionListener objIConnectionListener)
Adds the connection listener.
|
void |
addServicePDUReceiver(IServicePDUReceiver receiver)
Adds the service pdu receiver.
|
void |
close()
This function closes the PDU Reader.
|
int |
getReadMaxLength()
Gets the read max length.
|
void |
run()
This method starts the PDU reader.
|
void |
setPduWriter(PDUWriter pduWriter)
Sets PDUWriter on this instance.
|
void |
setReadMaxLength(int maxLength)
Sets the read max length.
|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic PDUReader(INetworkAgent objINetworkAgent)
objINetworkAgent - object of Network Agent.public void setPduWriter(PDUWriter pduWriter)
pduWriter - the pduWriterpublic void addAssociatePDUReceiver(IAssociatePDUReceiver receiver)
receiver - The Associate PDU receiver that will register itself for Association PDU.
If the Association PDU is received it is notified to IAssociate PDU Receiver.public void addServicePDUReceiver(IServicePDUReceiver receiver)
receiver - The Service PDU receiver that will register itself for Service PDU.
If the Service PDU is received it is notified to IService PDU Receiver.public void addConnectionListener(IConnectionListener objIConnectionListener)
objIConnectionListener - object of Connection listener.public void setReadMaxLength(int maxLength)
maxLength - The maximum length of data that can be read.public int getReadMaxLength()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void close()