Package one.tranic.t.i18n.loader
Interface I18n
- All Known Implementing Classes:
BaseI18n,GsonLoader,YmlLoader
public interface I18n
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic @NotNull StringgetBasePath(@Nullable String namespace, @NotNull Locale locale) static InputStreamgetResource(Class<?> clazz, @NotNull String filename) @NotNull ResourceLoaderload(@NotNull InputStream inputStream)
-
Method Details
-
flattenYaml
-
getBasePath
-
getResource
-
getResourceLoader
-
load
@NotNull default @NotNull Map<String,String> load(@NotNull @NotNull InputStream inputStream) throws IOException - Throws:
IOException
-
load
- Throws:
IOException
-
load
@NotNull default @NotNull Map<String,String> load(@NotNull @NotNull Path path, @NotNull @NotNull Locale locale) throws IOException, IllegalArgumentException - Throws:
IOExceptionIllegalArgumentException
-
load
@NotNull default @NotNull Map<String,String> load(@NotNull @NotNull Class<?> clazz, @NotNull @NotNull String namespace, @NotNull @NotNull Locale locale) throws IOException, IllegalArgumentException - Throws:
IOExceptionIllegalArgumentException
-