public class FileResource extends java.lang.Object implements ConfijResource
| Modifier and Type | Class and Description |
|---|---|
static class |
FileResource.AnyFileResource |
protected static class |
FileResource.PathAndMatcher |
ConfijResource.Defaults, ConfijResource.ResourceContent| Constructor and Description |
|---|
FileResource(java.lang.String fileTemplate) |
| Modifier and Type | Method and Description |
|---|---|
protected static FileResource.PathAndMatcher |
extractGlob(java.lang.String path) |
protected java.lang.String |
fileToStr(java.nio.file.Path path,
java.nio.charset.Charset charset) |
protected java.util.List<java.nio.file.Path> |
getFilesMatching(@NonNull FileResource.PathAndMatcher query) |
static FileResource |
ofFile(java.io.File file) |
static FileResource |
ofFile(java.lang.String file) |
static FileResource |
ofPath(java.nio.file.Path file) |
java.util.stream.Stream<ConfijResource.ResourceContent> |
read(ValueResolver.StringResolver resolver) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadpublic static FileResource ofFile(java.lang.String file)
public static FileResource ofFile(java.io.File file)
public static FileResource ofPath(java.nio.file.Path file)
protected static FileResource.PathAndMatcher extractGlob(java.lang.String path)
protected java.util.List<java.nio.file.Path> getFilesMatching(@NonNull
@NonNull FileResource.PathAndMatcher query)
public java.util.stream.Stream<ConfijResource.ResourceContent> read(ValueResolver.StringResolver resolver)
read in interface ConfijResourceprotected java.lang.String fileToStr(java.nio.file.Path path,
java.nio.charset.Charset charset)