Package de.themoep.utils.lang.simple
Interface Languaged
public interface Languaged
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the folder in which the languaged object stores it's config and data files inGet the logger of the languaged objectdefault String
getName()
The name of this languaged object.default InputStream
getResourceAsStream
(String path) Get a resource corresponding to this languaged object.
-
Method Details
-
getDataFolder
File getDataFolder()Get the folder in which the languaged object stores it's config and data files in- Returns:
- The folder
-
getLangLogger
LangLogger getLangLogger()Get the logger of the languaged object- Returns:
- The logger
-
getResourceAsStream
Get a resource corresponding to this languaged object. ReturnsClassLoader.getResourceAsStream(String)
by default.- Parameters:
path
- The path of the resource as a string- Returns:
- The
InputStream
of that resource
-
getName
The name of this languaged object. ReturnsClass.getSimpleName()
by default- Returns:
- The name of the languaged object.
-