org.apache.commons.lang3

## Class ClassLoaderUtils

- java.lang.Object
- - org.apache.commons.lang3.ClassLoaderUtils

-     public class ClassLoaderUtils
      extends Object

  Helps work with `ClassLoader`.
  Since:
    3.10

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ClassLoaderUtils()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `toString(ClassLoader classLoader)` Converts the given class loader to a String calling `toString(URLClassLoader)`.
    `static String` | `toString(URLClassLoader classLoader)` Converts the given URLClassLoader to a String in the format `"URLClassLoader.toString() + [URL1, URL2, ...]"`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ClassLoaderUtils

          public ClassLoaderUtils()

  - ### Method Detail

    - #### toString

          public static String toString(ClassLoader classLoader)

      Converts the given class loader to a String calling `toString(URLClassLoader)`.
      Parameters:
        `classLoader` - to URLClassLoader to convert.
      Returns:
        the formated string.

    - #### toString

          public static String toString(URLClassLoader classLoader)

      Converts the given URLClassLoader to a String in the format `"URLClassLoader.toString() + [URL1, URL2, ...]"`.
      Parameters:
        `classLoader` - to URLClassLoader to convert.
      Returns:
        the formated string.

Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.