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 ClassLoader
getClassLoaderForClass
(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
ClassLoader
for the given class or the context-classloader if theClassLoader
was null. - Since:
- v1.6
-