local.tomas.obex.transport
Class TransportBase

java.lang.Object
  extended by local.tomas.obex.transport.TransportBase
All Implemented Interfaces:
Transport
Direct Known Subclasses:
CommTransport

public abstract class TransportBase
extends java.lang.Object
implements Transport


Constructor Summary
TransportBase()
           
 
Method Summary
 void addListener(TransportListener listener)
           
 void close()
           
protected abstract  void closeInternal()
           
protected  void handleDataAvailable()
           
 boolean isOpen()
           
 void open()
           
protected abstract  void openInternal()
           
 void removeListener(TransportListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface local.tomas.obex.transport.Transport
available, receive, send
 

Constructor Detail

TransportBase

public TransportBase()
Method Detail

addListener

public void addListener(TransportListener listener)
Specified by:
addListener in interface Transport

removeListener

public void removeListener(TransportListener listener)
Specified by:
removeListener in interface Transport

open

public final void open()
                throws ObexException
Specified by:
open in interface Transport
Throws:
ObexException

close

public final void close()
Specified by:
close in interface Transport

isOpen

public boolean isOpen()

openInternal

protected abstract void openInternal()
                              throws ObexException
Throws:
ObexException

closeInternal

protected abstract void closeInternal()

handleDataAvailable

protected void handleDataAvailable()
                            throws ObexException
Throws:
ObexException


Copyright © 2007 null. All Rights Reserved.