ist.palcom.base
Class Channel

java.lang.Object
  extended by ist.palcom.base.Channel
Direct Known Subclasses:
BluetoothDiscovery, BluetoothSocket, DatagramSocket, EventChannel

public abstract class Channel
extends java.lang.Object

A Channel is used for non-blocking communication. It can be used as a parameter to select or to PalcomThread's enableIOEvent

See Also:
DatagramSocket

Constructor Summary
Channel()
           
 
Method Summary
abstract  boolean dataAvailable()
          This method should only be called by the System class, not from other classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Channel

public Channel()
Method Detail

dataAvailable

public abstract boolean dataAvailable()
This method should only be called by the System class, not from other classes. It is used for implementing select on the JVM, and not used on the PalVM.

After a call to System's select or selectNow with this Channel (on the JVM), this method returns true if data is available, false otherwise. If no call to select or selectNow has been made, the result is undefined.