com.motorola.oem.call
Interface DataCallConnection

All Superinterfaces:
javax.microedition.io.Connection, javax.microedition.io.InputConnection, javax.microedition.io.OutputConnection, javax.microedition.io.StreamConnection

public interface DataCallConnection
extends javax.microedition.io.StreamConnection

This interface defines the GSM Network data call stream connection. This connection is defined as a logical connection through which bytes are transferred serially over a circuit switched air interface.

DataCallConnection Usage

To transfer data over a DataCallConnection, first establish a data call (incoming or outgoing) as described in Call. Once a data call is connected, you may open a connection as follows:
d_call = (DataCallConnection) Connector.open("csd://",Connector.READ_WRITE,true);
To Access the already opened DataCallConnection, use: Call.getDataCallconn().
Once a reference to this implemented interface is available, use standard StreamConnection methods to read and write data as well as to control the connection.

A DataCallConnection object can only reference a single GSM data call at a time, and there can only be one DataCallConnection at a given time.

DataCallConnection instance has one underlying InputStream and one OutputStream. A DataCallConnection instance can have only one InputStream and one OutputStream open at a time. Trying to open more than one InputStream or more than one OutputStream from a StreamConnection causes an IOException. Trying to open an InputStream or an OutputStream after the DataCallConnection has been closed causes an IOException.


Method Summary
 
Methods inherited from interface javax.microedition.io.InputConnection
openDataInputStream, openInputStream
 
Methods inherited from interface javax.microedition.io.OutputConnection
openDataOutputStream, openOutputStream
 
Methods inherited from interface javax.microedition.io.Connection
close