TPTP 4.2.0 Platform Project
Public API Specification

org.eclipse.tptp.platform.execution.client.core
Interface IDataProcessor


public interface IDataProcessor

This interface defines the methods to be implemented by clients receiving data from agents.

Since:
tptp 1.0 (no change)

Method Summary
 void incomingData(byte[] buffer, int length, java.net.InetAddress peer)
          This method is invoked when data is received over the data channel
 void incomingData(char[] buffer, int length, java.net.InetAddress peer)
          This method is invoked when data is received over the data channel
 void invalidDataType(byte[] data, int length, java.net.InetAddress peer)
          This method is invoked when data received over the data channel is invalid.
 void waitingForData()
          This method is invoked when there is no data to be recieved over the data channel.
 

Method Detail

incomingData

public void incomingData(byte[] buffer,
                         int length,
                         java.net.InetAddress peer)
This method is invoked when data is received over the data channel

Parameters:
buffer - byte[]
length - int
peer - java.net.InetAddress

incomingData

public void incomingData(char[] buffer,
                         int length,
                         java.net.InetAddress peer)
This method is invoked when data is received over the data channel

Parameters:
buffer - char[]
length - int
peer - java.net.InetAddress

invalidDataType

public void invalidDataType(byte[] data,
                            int length,
                            java.net.InetAddress peer)
This method is invoked when data received over the data channel is invalid.

Parameters:
data - byte[]
length - int
peer - java.net.InetAddress

waitingForData

public void waitingForData()
This method is invoked when there is no data to be recieved over the data channel. Client Data Processors can implementa this to perform some other activity while it is waiting for data. Creation date: (10/3/00 5:54:46 PM)


TPTP 4.2.0 Platform Project
Public API Specification