Is there a way to override and not execute the headerCallBack in Spring Batch -


i've created abstract parentflatfilewriter included headercallback default header. works great because i'm writing 6 files.

but, on 1 file i'm writing, want skip header 1 file. still want use abstract bean rest of outfiles.

can override inherited headercallback property , not write header?

thanks

header written flatfileitemwriter.headercallback property setted else header writing skipped. in 7th writer set flatfileitemwriter.setheadercallback(null).
in spring xml write:

<bean id="my7thwriter" class="my7thwriterimpl" parent="parentflatfilewriter">   <property name="headercallback"><null/></property> </bean> 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -