Package xyz.dynxsty.dih4jda.util
Class IOUtils
java.lang.Object
xyz.dynxsty.dih4jda.util.IOUtils
Utility class that contains some useful methods regarding IO.
- Since:
- v1.6
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassLoadergetClassLoaderForClass(Class<?> clazz) Tries to get the classloader for the given class.
-
Method Details
-
getClassLoaderForClass
Tries to get the classloader for the given class.- Parameters:
clazz- The class you want to get the classloader from.- Returns:
- The
ClassLoaderfor the given class or the context-classloader if theClassLoaderwas null.
-