com.aol.acc
Class AccStreamListener

java.lang.Object
  extended by com.aol.acc.AccBase
      extended by com.aol.acc.AccStreamListener

public abstract class AccStreamListener
extends AccBase

IAccStreamListener is used for listening to events on an IAccStream.


Constructor Summary
AccStreamListener()
           
AccStreamListener(long oldHandle)
           
AccStreamListener(long oldHandle, boolean mem)
           
 
Method Summary
abstract  void onClosed(AccStream stream, AccResult hr)
          Called when a stream closes; hr indicates the type of close.
abstract  void onDataAvailable(AccStream stream)
          Called when there is data to be read from a stream.
abstract  void onReadyForData(AccStream stream)
          Called when ready for data to be written to a stream, i.e.
 
Methods inherited from class com.aol.acc.AccBase
compareHandle, equals
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccStreamListener

public AccStreamListener()

AccStreamListener

public AccStreamListener(long oldHandle)

AccStreamListener

public AccStreamListener(long oldHandle,
                         boolean mem)
Method Detail

onDataAvailable

public abstract void onDataAvailable(AccStream stream)
Called when there is data to be read from a stream. If Read is called, but not all the data is read, another event will be dispatched.


onReadyForData

public abstract void onReadyForData(AccStream stream)
Called when ready for data to be written to a stream, i.e. flow control restrictions have been lifted.


onClosed

public abstract void onClosed(AccStream stream,
                              AccResult hr)
Called when a stream closes; hr indicates the type of close.