StringUtils (Apache FOP 2.7 API)
Date: 2022-01-12

org.apache.fop.afp.util

## Class StringUtils

- java.lang.Object
- - org.apache.fop.afp.util.StringUtils

-     public final class StringUtils
      extends java.lang.Object

  Library of utility methods useful in dealing with strings.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### lpad

          public 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.
      Parameters:
        `input` - The input string.
        `padding` - The char used for padding.
        `length` - The length of the new string.
      Returns:
        The padded string.

    - #### rpad

          public 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.
      Parameters:
        `input` - The input string.
        `padding` - The char used for padding.
        `length` - The length of the new string.
      Returns:
        The padded string.

Copyright 1999-2022 The Apache Software Foundation. All Rights Reserved.