|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ferrettronics.device.CommPortProxy
Implementation of a proxy for a communications port.
Constructor Summary | |
CommPortProxy(javax.comm.CommPort cp)
Create a CommPortProxy. |
Method Summary | |
javax.comm.CommPort |
getCommPort()
Gets the communications port currently in use. |
void |
send(byte[] ab)
Send an array of bytes to the device. |
void |
send(int b)
Send a byte to the device. |
void |
setCommPort(javax.comm.CommPort cp)
Sets the communications port to write to. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public CommPortProxy(javax.comm.CommPort cp)
cp
- Communications Port to write.Method Detail |
public void send(byte[] ab)
ab
- The array of bytes to send.public void send(int b)
b
- An int containing a byte to be sent.public javax.comm.CommPort getCommPort()
public void setCommPort(javax.comm.CommPort cp)
cp
- Specifies the communications port.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |