ITPDSDataReceiver interface
ITPDSDataReceiver is a public interface.
The ITPDSDataReceiver interface provides for receiving binary data from the KCM Core server. This is typically the result document of a KCM process.
This interface is used to receive data send by Src(…) Dest(…) of the SendFile command.
import com.aia_itp.itpdsapi.*;
import java.io.*;
class MyClass implements ITPDSDataReceiver
{
....
public OutputStream ITPDSReceiveData(String DataItem)
{
try
{
return new BufferedOutputStream(new FileOutputStream("/temp/myfile.pdf"));
}
catch(Exception e)
{
return null;
}
}
public void ITPDSReceiveDataFinished(String DataItem, OutputStream out)
{
try
{
out.close();
}
catch(Exception e)
{
}
}
....
}