Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Server Built-In Services | IO Folder | Summary of Elements in this Folder | pub.io:close
 
pub.io:close
WmPublic. Closes an InputStream or a reader object and releases the resources.
Input Parameters
inputStream
java.io.InputStream Optional. An open InputStream.
Note:
You can use either inputStream or reader to specify the input object. If both the input parameters are provided, then both the objects will be closed.
reader
java.io.Reader Optional. An open reader object.
Output Parameters
None.
Usage Notes
If the InputStream is already closed, invoking this service has no effect. However, leaving an InputStream open may cause errors that are not recoverable until Integration Server is shut down. Use the pub.io:close service to explicitly close the input stream when a service leaves it open. For example, pub.file:getFile and pub.client.ftp:get leave the input stream open in the pipeline.