org.apache.fop.render.afp.tools
Class StringUtils
java.lang.Object
org.apache.fop.render.afp.tools.StringUtils
public class StringUtils
extends java.lang.Object
Library of utility methods useful in dealing with strings.
static String | lpad(String input, char padding, int length) - Padds the string to the left with the given character for
the specified length.
|
static String | rpad(String input, char padding, int length) - Padds the string to the right with the given character for
the specified length.
|
lpad
public static String lpad(String input,
char padding,
int length)
Padds the string to the left with the given character for
the specified length.
input
- The input string.padding
- The char used for padding.length
- The length of the new string.
rpad
public static String rpad(String input,
char padding,
int length)
Padds the string to the right with the given character for
the specified length.
input
- The input string.padding
- The char used for padding.length
- The length of the new string.
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.