public class LoadUtils
extends java.lang.Object
| Constructor and Description |
|---|
LoadUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.io.InputStream |
buildInputStreamProvider(java.lang.String resourceName) |
static java.io.InputStream |
getInputStream(java.io.File file) |
static java.io.InputStream |
getInputStream(java.nio.file.Path file) |
static java.io.InputStream |
getInputStream(java.lang.String propertiesFile) |
static IValueGetter |
loadProperties(org.xblackcat.sjpu.util.function.SupplierEx<java.io.InputStream,java.io.IOException> inputStreamProvider) |
static org.xblackcat.sjpu.settings.util.MapWrapper |
wrap(java.util.Map<java.lang.String,java.lang.String> shadow) |
public static IValueGetter loadProperties(org.xblackcat.sjpu.util.function.SupplierEx<java.io.InputStream,java.io.IOException> inputStreamProvider) throws java.io.IOException
java.io.IOExceptionpublic static org.xblackcat.sjpu.settings.util.MapWrapper wrap(java.util.Map<java.lang.String,java.lang.String> shadow)
public static java.io.InputStream getInputStream(java.nio.file.Path file)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.InputStream buildInputStreamProvider(java.lang.String resourceName)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.InputStream getInputStream(java.lang.String propertiesFile)
throws java.io.IOException
java.io.IOExceptionpublic static java.io.InputStream getInputStream(java.io.File file)
throws java.io.IOException
java.io.IOException