1
私はorg.beanio
を使用して固定長レコードを解析しています。同じ値で複数の@Fieldをbeanioで使用する方法は?
残念ながら、価格の整数と小数部分が異なる場所に配分されている値はprice
です。
質問:@Field
を1つの値に定義し、BigDecimal
の異なる部分をformat
で抽出することはできますか?
@Field(at = 20, length = 6, format = ...<the integer part>)
@Field(at = 100, length = 2, format = ...<the fractional part>)
private BigDecimal price;