|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSerialio.modem.Modem
Serialio.modem.SerModem
Creates a modem object.
| Field Summary | |
protected Serialio.SerOutputStream |
mos
|
| Fields inherited from class Serialio.modem.Modem |
ABORT, abortRequest, CONNECT, controlName, curLocale, DIAL_BLIND, DISCONNECT, eMsg, evMsg, GET_CONNECT, INITIALIZE, match, me, mip, mis, mTask, phoneNumber, rdBuf, rdCnt, sMsgs, spy, statusMsgNotify, STOP, STOP_WAIT_RING, stopRequest, stopWaitRing, WAIT_DONE, WAIT_RING |
| Constructor Summary | |
SerModem(ModemInterfaceProvider mip,
Serialio.SerOutputStream os,
Serialio.SerInputStream is)
Creates a modem object |
|
| Method Summary | |
boolean |
cmdReply(byte[] snd,
byte[] waitData,
int tmo)
send the dat, wait for data. |
void |
write(byte[] data)
Write data to the output stream |
void |
write(java.lang.String data)
Write data to the output stream |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Serialio.SerOutputStream mos
| Constructor Detail |
public SerModem(ModemInterfaceProvider mip,
Serialio.SerOutputStream os,
Serialio.SerInputStream is)
mip - the object providing the interface to the modem portos - the output stream the modem is connected tois - the input stream the modem is connected to| Method Detail |
public boolean cmdReply(byte[] snd,
byte[] waitData,
int tmo)
throws java.io.IOException,
java.lang.InterruptedException,
Serialio.ExTimeout
cmdReply in class Modemsnd - the data to sendwaitData - the data to wait fortmo - the timeout if waitData is not seen
IOException, - InterruptedException
java.io.IOException
java.lang.InterruptedException
Serialio.ExTimeout
public void write(java.lang.String data)
throws java.io.IOException,
Serialio.ExTimeout
write in class Modemjava.io.IOException
Serialio.ExTimeout
public void write(byte[] data)
throws java.io.IOException,
Serialio.ExTimeout
write in class Modemjava.io.IOException
Serialio.ExTimeout
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||