Methods

The ITPDSDataReceiver includes the following methods.

  • ITPDSReceiveData

public java.io.OutputStream ITPDSReceiveData(java.lang.String DataItem)

This method is called when the KCM Core server executes the SendFile command. This method returns either null to indicate that it does not want to receive the data or an OutputStream object to which the data is written.

It has one parameter:

  1. DataItem. The client parameter as passed in Src(...) Dest(...) of the SendFile command.
  • ITPDSReceiveDataFinished

public void ITPDSReceiveDataFinished(java.lang.String DataItem,
java.io.OutputStream out)

This method is called when receipt of the data has been finished. When this method is called, all data has been written to OutputStream returned by ITPDSReceiveData. It is typically used to close the OutputStream object.

It has one parameter:

  1. DataItem. The client parameter as passed in Src(...) Dest(...) of the SendFile command.

    out. The OutputStream object as returned by ITPDSReceiveData.