FileDocCategorySizeDatePackage
IrOBEXNotifier.javaAPI DocphoneME MR2 API (J2ME)2705Wed May 02 18:00:30 BST 2007com.sun.midp.io.j2me.irdaobex

IrOBEXNotifier

public class IrOBEXNotifier extends Object implements com.sun.kvem.jsr082.obex.ObexTransportNotifier
Provides the implemetation of the OBEX over IrDA notifier.

Fields Summary
boolean
isClosed
Indicates whether this connection has been closed
private javax.microedition.io.StreamConnectionNotifier
conn
Underlying connection notifier.
Constructors Summary
public IrOBEXNotifier(javax.microedition.io.StreamConnectionNotifier conn)
Creates the notifier object using the underlying connection notifier.

param
conn underlying connection notifier


                       
       
	this.conn = conn;
    
Methods Summary
public com.sun.kvem.jsr082.obex.ObexTransportacceptAndOpen()
Accepts IrDA OBEX transport connections.

return
an IrOBEXConnection object
exception
IOException if an I/O error occurs

	return new IrOBEXConnection(conn.acceptAndOpen());
    
public voidclose()
Closes this notifier and the underlying notifier.

exception
IOException if an I/O error occurs

        synchronized (this) {
            if (isClosed) {
                return;
            }
            isClosed = true;
        }
	conn.close();
    
public javax.microedition.io.ConnectiongetUnderlyingConnection()
Returns the underlying connection, or null if there is none.

return
underlying connection object

        return conn;