public class WRAPPERProtocol
extends java.lang.Object
| Constructor and Description |
|---|
WRAPPERProtocol(WRAPPERParameters wrapperParameters,
java.io.InputStream inStream,
java.io.OutputStream outStream)
Instantiates a new WRAPPERProtocol
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
sendReceive(byte[] outData)
Sends bytes to the server and then receives bytes from the server.
|
public WRAPPERProtocol(WRAPPERParameters wrapperParameters, java.io.InputStream inStream, java.io.OutputStream outStream)
wrapperParameters - The WRAPPER parameters to use.inStream - The InputStream to get bytes from the device server.outStream - The OutputStream to send bytes to the device server.
Two mechanisms are used to detect a timeout in receiving bytes from the device server.
public byte[] sendReceive(byte[] outData)
throws WRAPPERException,
java.io.IOException
outData - Byte array to be send to the server.WRAPPERException - the WRAPPER exceptionjava.io.IOException