Package ch.kk7.confij.source.resource
Class URLResource
java.lang.Object
ch.kk7.confij.source.resource.URLResource
- All Implemented Interfaces:
ConfijResource
public class URLResource extends java.lang.Object implements ConfijResource
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classURLResource.AnyURLResourceNested classes/interfaces inherited from interface ch.kk7.confij.source.resource.ConfijResource
ConfijResource.Defaults, ConfijResource.ResourceContent -
Constructor Summary
Constructors Constructor Description URLResource() -
Method Summary
Modifier and Type Method Description static URLResourceofUrl(java.lang.String urlTemplate)static URLResourceofUrl(java.net.URL url)java.util.stream.Stream<ConfijResource.ResourceContent>read(ValueResolver.StringResolver resolver)protected static java.lang.StringreadUrl(java.lang.String urlStr, java.lang.String charsetStr)protected static java.lang.StringreadUrl(java.net.URL url, java.nio.charset.Charset charset)URLResourcewithCharset(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
-
URLResource
public URLResource()
-
-
Method Details
-
ofUrl
-
ofUrl
-
withCharset
-
read
public java.util.stream.Stream<ConfijResource.ResourceContent> read(ValueResolver.StringResolver resolver)- Specified by:
readin interfaceConfijResource
-
readUrl
protected static java.lang.String readUrl(java.lang.String urlStr, java.lang.String charsetStr) -
readUrl
protected static java.lang.String readUrl(java.net.URL url, java.nio.charset.Charset charset)
-