Package nl.b3p.commons.clieop3
Class PadUtils
- java.lang.Object
-
- nl.b3p.commons.clieop3.PadUtils
-
public class PadUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static char[]
PADDING_SPACES
static char[]
PADDING_ZEROES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
pad(int count, char[] padding, StringBuffer appendTo)
static void
padNumber(String number, int length, StringBuffer appendTo)
static void
padRecord(StringBuffer appendTo, int length)
static void
padText(String text, int length, StringBuffer appendTo)
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.static void
prePadAppend(String str, int length, StringBuffer appendTo, char[] padding)
-
-
-
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)
-
-