org.apache.fop.render.afp.tools
public class StringUtils extends java.lang.Object
| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
lpad(java.lang.String input,
char padding,
int length)
Padds the string to the left with the given character for
the specified length.
|
static java.lang.String |
rpad(java.lang.String input,
char padding,
int length)
Padds the string to the right with the given character for
the specified length.
|
public static java.lang.String lpad(java.lang.String input,
char padding,
int length)
input - The input string.padding - The char used for padding.length - The length of the new string.public static java.lang.String rpad(java.lang.String input,
char padding,
int length)
input - The input string.padding - The char used for padding.length - The length of the new string.Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.