Package ch.kk7.confij.source.resource
Class ClasspathResource
java.lang.Object
ch.kk7.confij.source.resource.ClasspathResource
- All Implemented Interfaces:
ConfijResource
public class ClasspathResource extends java.lang.Object implements ConfijResource
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClasspathResource.AnyClasspathResourceNested classes/interfaces inherited from interface ch.kk7.confij.source.resource.ConfijResource
ConfijResource.Defaults, ConfijResource.ResourceContent -
Constructor Summary
Constructors Constructor Description ClasspathResource() -
Method Summary
Modifier and Type Method Description protected @NonNull java.net.URLasUrl(java.lang.String name)static ClasspathResourceofName(java.lang.String nameTemplate)java.util.stream.Stream<ConfijResource.ResourceContent>read(ValueResolver.StringResolver resolver)ClasspathResourcewithCharset(java.nio.charset.Charset charset)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.kk7.confij.source.resource.ConfijResource
read
-
Constructor Details
-
ClasspathResource
public ClasspathResource()
-
-
Method Details
-
withCharset
-
ofName
-
asUrl
@NonNull protected @NonNull java.net.URL asUrl(java.lang.String name) -
read
public java.util.stream.Stream<ConfijResource.ResourceContent> read(ValueResolver.StringResolver resolver)- Specified by:
readin interfaceConfijResource
-