Hybrid Integration 10.2 | Integrating Cloud Applications on Software AG Hosted Environment | Integration Cloud | Develop | Integrations | Built-In Services | Flat File | Summary of Flat File 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.

Copyright © 2015- 2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.