Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Cloud | Built-In Services | Built-In Services | documentToDelimitedDataStream
 
documentToDelimitedDataStream
Converts a document to a delimited data stream.
This service will convert the following document:
To the stream containing the following delimited data: (useHeaderRowForFieldNames=true)
"Date","Pupil","Grade"
"25 May","Bloggs, Fred","C"
"25 May","Doe, Jane","B"
"15 July","Bloggs, Fred","A"
Note:
Here the fieldQualifier = Comma(,) and textQualifier= double quote(")
or to the stream containing the following delimited data: (useHeaderRowForFieldNames=false)
"column1","column2","column3"
"Date","Pupil","Grade"
"25 May","Bloggs, Fred","C"
"25 May","Doe, Jane","B"
"15 July","Bloggs, Fred","A"
Note:
Here the fieldQualifier = Comma(,) and textQualifier= double quote(")
Input Parameters
document
Document. Document to be converted to delimited data stream. This document contains a document array rows[] corresponding to the delimited data.
fieldQualifier
String Optional. The delimiter to use for separating entries in delimitedDataStream. Default is comma (,).
textQualifier
String Optional. The character to use for quoted elements. Default is double quote (").
useField NamesFor HeaderRow
String Optional. The first line in the output delimited data delimitedDataStream will be constructed using the property names in the input document array document\rows[]. Set to:
*true. Property names in the input document array document\rows[] will be used as the first row in the output delimitedDataStream.
*false. column1, column2...columnN will be used as the first row in the output delimitedDataStream.
encoding
String Optional. The encoding to use while parsing the delimited data.
Output Parameters
delimited DataStream
java.io.InputStream. Delimited data stream resulting from the conversion of a document.