SMSLib 3.5.3

org.smslib.modem
Class AModemDriver

java.lang.Object
  extended by org.smslib.modem.AModemDriver

public abstract class AModemDriver
extends java.lang.Object

Abstract implementation of a generic GSM modem driver.


Method Summary
 void addToQueue(java.lang.String s)
           
 void clearBuffer()
           
 boolean dataAvailable()
           
 int getLastError()
           
 java.lang.String getLastErrorText()
           
 java.lang.String getResponse()
           
 java.lang.String getResponse(AGateway.AsyncEvents eventResponse)
           
 boolean isOk()
           
abstract  void write(byte[] s)
           
abstract  void write(char c)
           
 void write(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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()

SMSLib 3.5.3

(c) 2002-2011, http://smslib.org