java


Adding headers to Csv file using header enricher in spring integration


I need to write custom headers to csv file at the time of its creation, I tried using transformers in spring integration, but I cannot complete my task.
Start of file and firm name are the custom headers I need to add to csv file.
I know we can do this using #Transformer in spring integration, I'm confused with this, please help me understanding #transformer.
Output csv file should look like:
START-OF-FILE : ""
FIRMNAME : abcd
Year, make, model, description, price
1997, abs, moon, abc, 3000
Do I need to configure service provider in xml,
I'm new to spring integration, any help?
Any suggestions?
Thanks

Related Links

For loop Looping
AudioInputStream: Pop noise with Java 1.7 and 1.8 on macOS and 8-bit wav files
Error while loadagent in Java virtualmachine
Is it good idea to use the Dao design patern with spring Boot, instead of using repository design pattern provided by spring data jpa?
Win32 API vs Java socket flushing (TCP)
What are the drawbacks of combining Singleton pattern with the Facade pattern?
Java GlassFish The module has not been deployed
JavaFX - Show accelerator modifiers in Menu
Regex for ignoring inner parentheses when grouping by parentheses, java
Elasticsearch multiple condition query using java api
check if 2d array of string forms a chess board pattern
BigQuery - how to list all user defined functions (UDFs)
Selenium Java How do I keep the browser window open on a failed test step
Difference between QAS Address validation and UPS address validation
Jersey RxJava client and collection of resource endpoints
Spark Dataframe to Dataset of Java class

Categories

HOME
log4j
google-chrome-extension
multithreading
relative-path
objectgears
google-docs
tizen-web-app
c#-2.0
flyway4
append
fancybox-3
google-cloud-spanner
vb.net-2010
gz
static-libraries
finite-automata
google-static-maps
immutable.js
nas
physics-engine
orleans
mustache.php
captiveportal
sparse-matrix
react-css-modules
uninstall
media-queries
data-manipulation
perlin-noise
rotational-matrices
amazon-kinesis-kpl
event-driven
mesos-chronos
sql-server-agent
nxlog
avconv
smartcontracts
jedis
togetherjs
git-diff
worker-thread
iso8601
jquery-filter
vmware-tools
multi-level
mathematica-frontend
django-debug-toolbar
bgp
goose
browser-link
unity-networking
wordml
riak-cs
event-bubbling
web-controls
dereference
tween
coldbox
php-5.4
castle
elliptic-curve
datagridviewcolumn
typo3-neos
prettify
apc
google-cloud-save
qt-faststart
mylyn
interface-orientation
enterprisedb
factory-method
gil
jquery-ui-layout
whoosh
boost-filesystem
stage
telerik-scheduler
digest-authentication
ext3
photoshop-cs4

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App