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.AnyURLResource-
Nested classes/interfaces inherited from interface ch.kk7.confij.source.resource.ConfijResource
ConfijResource.Defaults, ConfijResource.ResourceContent
-
-
Constructor Summary
Constructors Constructor Description URLResource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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, wait
-
Methods inherited from interface ch.kk7.confij.source.resource.ConfijResource
read
-
-
-
-
Method Detail
-
ofUrl
public static URLResource ofUrl(java.lang.String urlTemplate)
-
ofUrl
public static URLResource ofUrl(java.net.URL url)
-
withCharset
public URLResource withCharset(java.nio.charset.Charset charset)
-
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)
-
-