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

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -