@Immutable public final class ClassPathHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
forAllClassPathEntries(Consumer<? super String> aConsumer)
Add all class path entries into the provided target list.
|
static ICommonsList<String> |
getAllClassPathEntries() |
static void |
printClassPathEntries(PrintStream aPS)
Print all class path entries on the passed print stream, using the system
line separator
|
static void |
printClassPathEntries(PrintStream aPS,
String sItemSeparator)
Print all class path entries on the passed print stream, using the passed
separator
|
@Nonnull @ReturnsMutableCopy public static ICommonsList<String> getAllClassPathEntries()
null list of all directories and files currently
in the class path.public static void forAllClassPathEntries(@Nonnull Consumer<? super String> aConsumer)
aConsumer - The target consumer invoked for all entries. May not be
null.public static void printClassPathEntries(@Nonnull PrintStream aPS)
aPS - The print stream to print to. May not be null.public static void printClassPathEntries(@Nonnull PrintStream aPS, @Nonnull String sItemSeparator)
aPS - The print stream to print to. May not be null.sItemSeparator - The separator to be printed between each item.Copyright © 2014–2019 Philip Helger. All rights reserved.