Integration Server 10.3 | Built-In Services Reference Guide | File Folder | Summary of Elements in this Folder | pub.file:readerToFile
 
pub.file:readerToFile
WmPublic. Reads data from a java.io.Reader object and writes it to a file.
Input Parameters
fileName
String Fully qualified name of the file to which the data is to be written.
reader
java.io.Reader The reader object from which the data is read.
append
String Optional. Specifies whether to append to or overwrite the file if it already exists. The default behavior is to create a new file if the file does not exist or overwrite an existing file if the file already exists.
Set to:
*true to append if the file already exists.
*false to overwrite if the file already exists.
encoding
String Optional. Name of a registered, IANA character set (for example, ISO-8859-1).
If you specify an unsupported encoding, the system throws an exception. If no value is specified or if the encoding is set to autoDetect, the default operating system encoding is used.
Output Parameters
None.
Usage Notes
For security reasons, the pub.file:readerToFile service checks the input fileName parameter against the list of allowedWritePaths values specified in the fileAccessControl.cnf file. If the input fileName is not on the allowed list, the service throws an exception. For information about configuring the fileAccessControl.cnf file, refer to File Access Control Configuration for the pub.file Services.
The readerToFile service does not automatically close the reader object. To close the reader, use the pub.io:close service.