Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Cloud | Built-In Services | Built-In Services | delimitedDataBytesToDocument
 
delimitedDataBytesToDocument
Converts delimited data bytes (byte array) to a document.
This service will convert the following delimited data from byte array:
"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 DataBytes
java.lang.Byte[ ]. Delimited data in bytes (Byte array) to convert to a document.
fieldQualifier
String Optional. The delimiter to use for separating entries in delimitedDataBytes. 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 delimitedDataBytes. This document contains document array rows[] corresponding to the delimited data.