Class IoUtils

java.lang.Object
xyz.dynxsty.dih4jda.util.IoUtils

public class IoUtils extends Object
Utility class that contains some useful methods regarding IO.
Since:
v1.6
  • Method Details

    • getClassLoaderForClass

      @Nonnull public static ClassLoader getClassLoaderForClass(@Nonnull Class<?> clazz)
      Tries to get the classloader for the given class.
      Parameters:
      clazz - The class you want to get the classloader from.
      Returns:
      The ClassLoader for the given class or the context-classloader if the ClassLoader was null.
      Since:
      v1.6