Package com.helger.commons.lang
Class ClassPathHelper
java.lang.Object
com.helger.commons.lang.ClassPathHelper
Utility class for dealing with the Java class path.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidforAllClassPathEntries(Consumer<? super String> aConsumer) Iterate all class path entries and invoke the provided consumer.static ICommonsList<String> static voidPrint all class path entries on the passed print stream, using the system line separatorstatic voidprintClassPathEntries(PrintStream aPS, String sItemSeparator) Print all class path entries on the passed print stream, using the passed separator
-
Method Details
-
getAllClassPathEntries
- Returns:
- A non-
nulllist of all directories and files currently in the class path.
-
forAllClassPathEntries
Iterate all class path entries and invoke the provided consumer.- Parameters:
aConsumer- The target consumer invoked for all entries. May not benull.
-
printClassPathEntries
Print all class path entries on the passed print stream, using the system line separator- Parameters:
aPS- The print stream to print to. May not benull.
-
printClassPathEntries
Print all class path entries on the passed print stream, using the passed separator- Parameters:
aPS- The print stream to print to. May not benull.sItemSeparator- The separator to be printed between each item.
-