public class SpacePadder extends Object
Constructor and Description |
---|
SpacePadder() |
Modifier and Type | Method and Description |
---|---|
static void |
leftPad(StringBuilder buf,
String s,
int desiredLength) |
static void |
rightPad(StringBuilder buf,
String s,
int desiredLength) |
static void |
spacePad(StringBuilder sbuf,
int length)
Fast space padding method.
|
public static final void leftPad(StringBuilder buf, String s, int desiredLength)
public static final void rightPad(StringBuilder buf, String s, int desiredLength)
public static final void spacePad(StringBuilder sbuf, int length)
sbuf
- buffer to modifylength
- number of spaces to addCopyright © 2005–2014 QOS.ch. All rights reserved.