|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectserialPort.SerialPortBeanUtils
public final class SerialPortBeanUtils
Method Summary | |
---|---|
void |
close()
|
void |
dial(java.lang.String number,
DialBean db)
|
void |
echoResult()
|
void |
englishResultCodes()
|
CommPortOwnershipBean |
getCommPortOwnershipAdapter()
|
static SerialPortBeanUtils |
getSerialPortUtils(SerialPortBean spb)
|
void |
listPorts()
|
void |
loud()
|
static void |
main(java.lang.String[] args)
|
void |
numericResultCodes()
|
void |
printLightStatus()
|
void |
resetModem()
|
void |
sendLine(java.lang.String line)
Sends a line (with a carrage return) to the serial port |
void |
sendString(java.lang.String s)
|
void |
setDtmfSpeed(int s11)
The s11 register should be between 65 and 255 ms. |
void |
setLocalEchoOn()
|
void |
setNumberOfRingsBeforeAnswer(int nor)
|
void |
setUp()
|
void |
startPrintThread()
This prints the return from the serial port. |
static void |
testSerialPortBeanUtils()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void printLightStatus()
public static SerialPortBeanUtils getSerialPortUtils(SerialPortBean spb) throws UnsupportedCommOperationException, NoSuchPortException, java.io.IOException, PortInUseException
UnsupportedCommOperationException
NoSuchPortException
java.io.IOException
PortInUseException
public void dial(java.lang.String number, DialBean db)
public void startPrintThread() throws java.io.IOException
java.io.IOException
- if unable to get an input stream from the serial portpublic void setUp()
public void loud()
public void resetModem()
public void setLocalEchoOn()
public void setDtmfSpeed(int s11)
s11
- in ms (65..255) default 95.public void echoResult()
public void englishResultCodes()
public void setNumberOfRingsBeforeAnswer(int nor)
public void numericResultCodes()
public void sendString(java.lang.String s) throws java.io.IOException
java.io.IOException
public void listPorts()
public void close()
public CommPortOwnershipBean getCommPortOwnershipAdapter()
public static void testSerialPortBeanUtils() throws UnsupportedCommOperationException, java.io.IOException, NoSuchPortException, PortInUseException
UnsupportedCommOperationException
java.io.IOException
NoSuchPortException
PortInUseException
public void sendLine(java.lang.String line)
line
- a string to send.public static void main(java.lang.String[] args) throws UnsupportedCommOperationException, java.io.IOException, NoSuchPortException, PortInUseException
UnsupportedCommOperationException
java.io.IOException
NoSuchPortException
PortInUseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |