Top Description Constructors Methods
org.codehaus.commons.compiler.util

public final Class StringUtil

extends Object
Class Inheritance
Imports
java.io.File, java.util.ArrayList, .List, org.codehaus.commons.nullanalysis.Nullable

Utility methods related to String.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static File[]
parseOptionalPath(String s)

Same as parsePath(String), but returns null iff s == null.

public static File[]
parsePath(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 ";").

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StringUtilback to summary
private StringUtil()

Method Detail

parseOptionalPathback to summary
public static File[] parseOptionalPath(String s)

Same as parsePath(String), but returns null iff s == null.

Annotations
@Nullable
parsePathback to summary
public static File[] parsePath(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