Frage

I use Camel Bindy and @FixedLengthRecord strategy .

I have a field :

@DataField(pos=21, length=6, trim=true,align="R")
private BigDecimal refundCount

and I want leading this field zeros. What can I do to achieve this ?

War es hilfreich?

Lösung

Have you tried setting paddingChar='0'

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top