Package one.tranic.t.i18n.loader
Class ResourceLoader
java.lang.Object
one.tranic.t.i18n.loader.ResourceLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected abstract Stringprotected abstract Stringload(@NotNull InputStream inputStream) parseInputStream(@NotNull InputStream inputStream)
-
Constructor Details
-
ResourceLoader
public ResourceLoader()
-
-
Method Details
-
getFileExtension
-
getAlternativeFileExtension
-
getFormatName
-
parseInputStream
protected abstract Map<String,String> parseInputStream(@NotNull @NotNull InputStream inputStream) throws IOException - Throws:
IOException
-
load
- Throws:
IOException
-
load
- Throws:
IOException
-
load
public Map<String,String> load(@NotNull @NotNull Path path, @NotNull @NotNull Locale locale) throws IOException, IllegalArgumentException - Throws:
IOExceptionIllegalArgumentException
-
load
public Map<String,String> load(@NotNull @NotNull Class<?> clazz, @NotNull @NotNull String namespace, @NotNull @NotNull Locale locale) throws IOException, IllegalArgumentException - Throws:
IOExceptionIllegalArgumentException
-