Class StringUtil


  • public final class StringUtil
    extends java.lang.Object
    Utility methods related to String.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.File[] parseOptionalPath​(java.lang.String s)
      Same as parsePath(String), but returns null iff s == null.
      static java.io.File[] parsePath​(java.lang.String s)
      Breaks a given string up by the system-dependent path-separator character (on UNIX systems, this character is ":"; on Microsoft Windows systems it is ";").
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parsePath

        public static java.io.File[] parsePath​(java.lang.String s)
        Breaks a given string up by the system-dependent path-separator character (on UNIX systems, this character is ":"; on Microsoft Windows systems it is ";"). Empty components are ignored.

        UNIX Examples:

        A:B:C
        A, B, C
        ::B:
        B
        :A
        A
        (Empty string)
        (Zero components)
        See Also:
        File.pathSeparatorChar