Class PadUtils


  • public class PadUtils
    extends Object
    • Field Detail

      • PADDING_SPACES

        public static final char[] PADDING_SPACES
      • PADDING_ZEROES

        public static final char[] PADDING_ZEROES
    • Method Detail

      • pad

        public static void pad​(int count,
                               char[] padding,
                               StringBuffer appendTo)
      • postPadAppend

        public static void postPadAppend​(String str,
                                         int length,
                                         StringBuffer appendTo,
                                         char[] padding)
        Indien str even lang of langer dan length kap str af tot length, anders vul str aan met padding tot length.
      • prePadAppend

        public static void prePadAppend​(String str,
                                        int length,
                                        StringBuffer appendTo,
                                        char[] padding)
      • padText

        public static void padText​(String text,
                                   int length,
                                   StringBuffer appendTo)
      • padNumber

        public static void padNumber​(String number,
                                     int length,
                                     StringBuffer appendTo)
      • padRecord

        public static void padRecord​(StringBuffer appendTo,
                                     int length)