-
- All Known Implementing Classes:
AbstractLeftPadder
,AbstractPadder
,AbstractRightPadder
,SpaceLeftPadder
,SpaceRightPadder
,ZeroLeftPadder
,ZeroRightPadder
public interface Padder
Used when writing records to a file. Some record definitions require data to be left or right padded. By default theMarshaller
will left pad using spaces. JRecordBind comes with 4 built-in padders that left or right pad using spaces or zeros. If you need a different padding, you can specify it by implementing this interface.
The default padder is specified in the "main" tag of the record definition, and each element can have its own specific padder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
pad(String input, int length)
Pads a string to the given lengthString
unpad(String input)
-