|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.marre.sms.transport.gsm.SerialComm
Simple Serial port comm.
Constructor Summary | |
SerialComm(java.lang.String appName,
java.lang.String portName)
Constructor. |
Method Summary | |
void |
close()
Closes the connection to the device. |
void |
open()
Opens a connection to the device. |
java.lang.String |
readLine()
Reads one row of data from the device. |
java.lang.String |
readLine(java.lang.String find)
Reads one row of data from the device or until we have read the find string. |
void |
send(java.lang.String row)
Send data to the device. |
void |
setBitRate(java.lang.String theBitRate)
|
void |
setDataBits(java.lang.String theDataBits)
|
void |
setEcho(boolean echo)
|
void |
setFlowControl(java.lang.String theFlowControl)
|
void |
setParity(java.lang.String theParity)
|
void |
setStopBits(java.lang.String theStopBits)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SerialComm(java.lang.String appName, java.lang.String portName)
portName
- Method Detail |
public void open() throws java.io.IOException
GsmComm
open
in interface GsmComm
java.io.IOException
public void close()
GsmComm
close
in interface GsmComm
public void send(java.lang.String row) throws java.io.IOException
GsmComm
send
in interface GsmComm
row
-
java.io.IOException
public java.lang.String readLine() throws java.io.IOException
GsmComm
readLine
in interface GsmComm
java.io.IOException
public java.lang.String readLine(java.lang.String find) throws java.io.IOException
GsmComm
readLine
in interface GsmComm
find
-
java.io.IOException
public void setBitRate(java.lang.String theBitRate)
public void setDataBits(java.lang.String theDataBits)
public void setFlowControl(java.lang.String theFlowControl)
public void setParity(java.lang.String theParity)
public void setStopBits(java.lang.String theStopBits)
public void setEcho(boolean echo)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |