Class RightTPadder

java.lang.Object
org.jpos.iso.RightPadder
org.jpos.iso.RightTPadder
All Implemented Interfaces:
Padder

public class RightTPadder extends RightPadder
Implements the Padder interface for padding strings and byte arrays on the Right. The difference between this and RightPadder is that this truncates the data during packing, instead of throwing an exception.
  • Field Details

    • SPACE_PADDER

      public static final RightTPadder SPACE_PADDER
      A padder for padding spaces on the right. This is very common in alphabetic fields.
  • Constructor Details

    • RightTPadder

      public RightTPadder(char pad)
      Creates a Right Truncating Padder with a specific pad character.
      Parameters:
      pad - The padding character. For binary padders, the pad character is truncated to lower order byte.
  • Method Details