org.smslib.modem
Class AModemDriver
java.lang.Object
org.smslib.modem.AModemDriver
public abstract class AModemDriver
- extends java.lang.Object
Abstract implementation of a generic GSM modem driver.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
write
public abstract void write(char c)
throws java.io.IOException
- Throws:
java.io.IOException
write
public abstract void write(byte[] s)
throws java.io.IOException
- Throws:
java.io.IOException
dataAvailable
public boolean dataAvailable()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
write
public void write(java.lang.String s)
throws java.io.IOException
- Throws:
java.io.IOException
addToQueue
public void addToQueue(java.lang.String s)
getResponse
public java.lang.String getResponse()
throws GatewayException,
TimeoutException,
java.io.IOException,
java.lang.InterruptedException
- Throws:
GatewayException
TimeoutException
java.io.IOException
java.lang.InterruptedException
getResponse
public java.lang.String getResponse(AGateway.AsyncEvents eventResponse)
throws GatewayException,
TimeoutException,
java.io.IOException,
java.lang.InterruptedException
- Throws:
GatewayException
TimeoutException
java.io.IOException
java.lang.InterruptedException
clearBuffer
public void clearBuffer()
throws java.io.IOException,
java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
getLastError
public int getLastError()
getLastErrorText
public java.lang.String getLastErrorText()
isOk
public boolean isOk()
(c) 2002-2011, http://smslib.org