Class SpacePadder


  • public class SpacePadder
    extends Object
    • Field Detail

      • LINE_SEP

        public static final String LINE_SEP
    • Constructor Detail

      • SpacePadder

        public SpacePadder()
    • Method Detail

      • leftPad

        public static final void leftPad​(StringBuilder buf,
                                         String s,
                                         int desiredLength)
      • rightPad

        public static final void rightPad​(StringBuilder buf,
                                          String s,
                                          int desiredLength)
      • spacePad

        @Deprecated
        public static final void spacePad​(StringBuffer sbuf,
                                          int length)
        Deprecated.
        Fast space padding method.
        Parameters:
        sbuf - the buffer to pad
        length - the target size of the buffer after padding
      • spacePad

        public static final void spacePad​(StringBuilder sbuf,
                                          int length)
        Fast space padding method.
        Parameters:
        sbuf - the buffer to pad
        length - the target size of the buffer after padding