Integration Cloud 6.6.0 | Built-In Services | Built-In Services | delimitedDataStreamToDocument
 
delimitedDataStreamToDocument
Converts delimited data stream to a document. The permissible size of the content stream is based on your tenancy. The permissible size of the content stream is based on your tenancy.
This service converts the following delimited data in a stream:
"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(")
to a document that looks like: (useHeaderRowForFieldNames=true)
or to a document that looks like: (useHeaderRowForFieldNames=false)
Input Parameters
delimited DataStream
java.io.InputStream. Delimited data in an input stream to convert to a document.
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 (").
useHeader RowFor FieldNames
String Optional. Consider first line as header row and use the delimited data of this line as property names in the output document. Set to:
*true. The delimited data of first line will be used as the property name in the output document. This is the default.
*false. column1, column2...columnN will be used as the property name in the output document.
encoding
String Optional. The encoding to use while parsing the delimited data.
Output Parameters
document
Document. Document resulting from the conversion of delimitedDataStream. This document contains document array rows[] corresponding to the delimited data.