|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConnection
Interface for connection protocol layers like TCP/IP and RS-232.
Method Summary | |
---|---|
void |
dispose()
Closes connection and removes locks on the involved device. |
String |
hark(int n)
Harks to incoming data. |
String |
receive(char exit)
Tries to receive a sequence of characters until an exit character is read. |
String |
receive(int n)
Tries to receive a fixed number of characters. |
LinkedList<Integer> |
receiveByte(int n)
Tries to receive a fixed number of characters. |
void |
send(byte data)
Sends data to the target. |
void |
send(byte[] data)
Sends data to the target. |
void |
send(String data)
Sends data to the target. |
Method Detail |
---|
void dispose()
void send(String data) throws CommunicationException
data
- data to be sent
CommunicationException
- when an exception occurs while sending datavoid send(byte data) throws CommunicationException
data
- data to be sent
CommunicationException
- when an exception occurs while sending datavoid send(byte[] data) throws CommunicationException
data
- data to be sent
CommunicationException
- when an exception occurs while sending dataString receive(char exit) throws CommunicationException
exit
- the exit character
CommunicationException
- when a timeout is reached before the exit character is readString receive(int n) throws CommunicationException
n
- the number of characters to be fetched
CommunicationException
- when a timeout is reached before the exit character is readLinkedList<Integer> receiveByte(int n) throws CommunicationException
n
- the number of characters to be fetched
CommunicationException
- when a timeout is reached before the exit character is readString hark(int n) throws CommunicationException
n
- maximal number of characters to receive
CommunicationException
- when an exception occurs while receiving data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |