fixedwidth library

Classes

BooleanField
BooleanField is for a string output of Y/N
DateTimeField
DateTimeField is for... Dates or DateTime! [...]
DecimalField
ImpliedDecimalField
Implied Decimal Field is a numeric field with implied decimals [...]
IntegerField
ListField
ListField can be used similar to a COBOL OCCURS. A particular record can repeat multiple times. [...]
NullBooleanField
NullBooleanField is for a string output of Y/N, or ' ' [...]
Record
The base class for a fixed width record definition. [...]
SignedImpliedDecimalField
Signed Implied Decimal Field is numeric with implied decimal point Length is the total length of the field including decimals and a +/- sign The sign is always the last byte [...]
StringField

Functions

floatPadding(int length, num val, {int fractionalDigits = 2}) String
Pads zeros to left and right to assure proper length and precision Values may be rounded.
impliedDecimalPadding(int length, num val, {int fractionalDigits = 2}) String
Pads zeros to left and right to assure proper length and precision If decimals are present, we add 1 to the fill so the length is correct after stripping out the decimal.

Exceptions / Errors

FieldLengthException
FieldValueException