org.apache.cxf.common.util

## Class StringUtils

- java.lang.Object
- - org.apache.cxf.common.util.StringUtils

-     public final class StringUtils
      extends Object

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `addDefaultPortIfMissing(String urlString)`
    `static String` | `addDefaultPortIfMissing(String urlString, String defaultPort)`
    `static String` | `capitalize(String name)` Return input string with first character in upper case.
    `static String` | `diff(String str1, String str2)`
    `static String` | `extract(String string, String startToken, String endToken)`
    `static String` | `formatVersionNumber(String target)`
    `static String` | `getFirstFound(String contents, String regex)`
    `static String` | `getFirstNotEmpty(List<String> list)`
    `static String` | `getFirstNotEmpty(String str, String sperator)`
    `static List<String>` | `getFound(String contents, String regex)`
    `static List<String>` | `getParts(String str, String sperator)`
    `static URL` | `getURL(String spec)`
    `static boolean` | `isEmpty(List<String> list)`
    `static boolean` | `isEmpty(String str)`
    `static boolean` | `isEqualUri(String uri1, String uri2)`
    `static boolean` | `isFileAbsolute(String file)`
    `static boolean` | `isFileExist(String file)`
    `static String` | `uncapitalize(String str)`
    `static String` | `wrapper(String string, String startToken, String endToken)`

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

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

- - ### Method Detail

    - #### extract

          public static String extract(String string,
                       String startToken,
                       String endToken)

    - #### wrapper

          public static String wrapper(String string,
                       String startToken,
                       String endToken)

    - #### isFileExist

          public static boolean isFileExist(String file)

    - #### isFileAbsolute

          public static boolean isFileAbsolute(String file)

    - #### getURL

          public static URL getURL(String spec)
                            throws MalformedURLException

      Throws:
        `MalformedURLException`

    - #### isEmpty

          public static boolean isEmpty(String str)

    - #### isEmpty

          public static boolean isEmpty(List<String> list)

    - #### isEqualUri

          public static boolean isEqualUri(String uri1,
                           String uri2)

    - #### diff

          public static String diff(String str1,
                    String str2)

    - #### getParts

          public static List<String> getParts(String str,
                              String sperator)

    - #### getFirstNotEmpty

          public static String getFirstNotEmpty(String str,
                                String sperator)

    - #### getFirstNotEmpty

          public static String getFirstNotEmpty(List<String> list)

    - #### getFound

          public static List<String> getFound(String contents,
                              String regex)

    - #### getFirstFound

          public static String getFirstFound(String contents,
                             String regex)

    - #### formatVersionNumber

          public static String formatVersionNumber(String target)

    - #### addDefaultPortIfMissing

          public static String addDefaultPortIfMissing(String urlString)

    - #### addDefaultPortIfMissing

          public static String addDefaultPortIfMissing(String urlString,
                                       String defaultPort)

    - #### capitalize

          public static String capitalize(String name)

      Return input string with first character in upper case.
      Parameters:
        `name` - input string.
      Returns:
        capitalized form.

    - #### uncapitalize

          public static String uncapitalize(String str)

Apache CXF