Package org.apache.fop.afp.util
Class StringUtils
java.lang.Object
org.apache.fop.afp.util.StringUtils
Library of utility methods useful in dealing with strings.
-
Method Details
-
lpad
Padds the string to the left with the given character for the specified length.- Parameters:
input
- The input string.padding
- The char used for padding.length
- The length of the new string.- Returns:
- The padded string.
-
rpad
Padds the string to the right with the given character for the specified length.- Parameters:
input
- The input string.padding
- The char used for padding.length
- The length of the new string.- Returns:
- The padded string.
-