| java.lang.Object org.apache.fop.render.afp.tools.StringUtils
StringUtils | public class StringUtils (Code) | | Library of utility methods useful in dealing with strings.
|
Method Summary | |
public static String | lpad(String input, char padding, int length) Padds the string to the left with the given character for
the specified length.
Parameters: input - The input string. Parameters: padding - The char used for padding. Parameters: length - The length of the new string. | public static String | rpad(String input, char padding, int length) Padds the string to the right with the given character for
the specified length.
Parameters: input - The input string. Parameters: padding - The char used for padding. Parameters: length - The length of the new string. |
lpad | public static String lpad(String input, char padding, int length)(Code) | | Padds the string to the left with the given character for
the specified length.
Parameters: input - The input string. Parameters: padding - The char used for padding. Parameters: length - The length of the new string. The padded string. |
rpad | public static String rpad(String input, char padding, int length)(Code) | | Padds the string to the right with the given character for
the specified length.
Parameters: input - The input string. Parameters: padding - The char used for padding. Parameters: length - The length of the new string. The padded string. |
|
|