Package com.helger.base.lang
Class ClassPathHelper
java.lang.Object
com.helger.base.lang.ClassPathHelper
Utility class for dealing with the Java class path.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidforAllClassPathEntries(@NonNull Consumer<? super String> aConsumer) Iterate all class path entries and invoke the provided consumer.static voidprintClassPathEntries(@NonNull PrintStream aPS) Print all class path entries on the passed print stream, using the system line separatorstatic voidprintClassPathEntries(@NonNull PrintStream aPS, @NonNull 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.
-