com.ferrettronics.device
Interface DeviceProxy
- All Known Implementing Classes:
- CommPortProxy, Ft649Proxy
- public interface DeviceProxy
Defines an interface that a proxy for a receiving device supports.
An implementation of this interface will be a proxy that forwards messages
to a receiving device.
Method Summary |
void |
send(byte[] ab)
Send an array of bytes to the device. |
void |
send(int b)
Send a byte to the device. |
send
public void send(byte[] ab)
- Send an array of bytes to the device.
- Parameters:
ab
- The array of bytes to send.
send
public void send(int b)
- Send a byte to the device.
This method takes an int. Only the eight low-order bits are written
to the device.
- Parameters:
b
- An int containing a byte to be sent.