Class MiscUtilities

This class is another collection of static utility methods.

These methods extract various elements from a path name:

These methods are hard to categorize, but are useful nonetheless:

The compareStrings() method is very useful for sorting strings. The MiscUtilities class defines several java.util.Comparator implementations that use this method, useful for using with the sorting features of the Java collections API:

For example, you might call:

Arrays.sort(myListOfStrings,
    new MiscUtilities.StringICaseCompare());