Академический Документы
Профессиональный Документы
Культура Документы
%
!& ! !& ! ! &
'
)
*
'
@Record
public class MyRecord {
http://fixedformat4j.ancientprogramming.com/ 2008-05-27
@Field(offset = 24, length = 10, align = Align.RIGHT, paddingChar = '0')
public BigDecimal getBigDecimalData() {
return bigDecimalData;
}
) *
...
//setup testdata
final String MY_RECORD_DATA = "some text +012320080525+000120120";
Calendar someDay = Calendar.getInstance();
someDay.set(2008, 4, 25, 0, 0, 0); //month is zerobased, hench 4 equals May
someDay.set(Calendar.MILLISECOND, 0);
//an export should bring back the exact same string as we loaded
Assert.assertEquals(MY_RECORD_DATA, manager.export(loadedRecord));
...
+
# ,
) &-
http://fixedformat4j.ancientprogramming.com/ 2008-05-27