Designing with Communication Adapters

Consuming-stream Adapters

This section explains how to use consuming-stream adapters.

ProcedureTo Obtain a Stream

  1. Use the requestXXStream() method to obtain the corresponding XX stream.

ProcedureTo Use a Stream

  1. Perform the transfer using the methods provided by the stream.

ProcedureTo Dispose of a Stream

  1. Release any references to the stream.

  2. Release the stream (XX) using the releaseXXStream() method. Some of the OTDs support post-transfer commands. The Success parameter indicates whether these commands are executed. Do not close the stream.