org.marre.sms.transport.gsm
Interface GsmComm

All Known Implementing Classes:
SerialComm

public interface GsmComm

Interface for communicating with a GSM device.

Version:
$Id: GsmComm.java,v 1.1 2005/11/26 16:38:50 c95men Exp $
Author:
Markus

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 data)
          Send data to the device.
 

Method Detail

open

public void open()
          throws java.io.IOException
Opens a connection to the device.

Throws:
java.io.IOException

close

public void close()
Closes the connection to the device.


send

public void send(java.lang.String data)
          throws java.io.IOException
Send data to the device.

Parameters:
data -
Throws:
java.io.IOException

readLine

public java.lang.String readLine()
                          throws java.io.IOException
Reads one row of data from the device.

Returns:
Throws:
java.io.IOException

readLine

public java.lang.String readLine(java.lang.String find)
                          throws java.io.IOException
Reads one row of data from the device or until we have read the find string.

Parameters:
find -
Returns:
Throws:
java.io.IOException


Copyright © 2002-2005 Markus Eriksson. All Rights Reserved.