przodownikPracy
przodownikPracy

Reputation: 547

leading field camel bindy

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 ?

Upvotes: 1

Views: 381

Answers (1)

Claus Ibsen
Claus Ibsen

Reputation: 55525

Have you tried setting paddingChar='0'

Upvotes: 1

Related Questions