public class URLChartLoader extends StreamOrientedChartLoader<URL>
StreamOrientedChartLoader<URL> that creates
ChartOuterClass.Chart instances from URL instances.
This class is safe for concurrent use by multiple threads.
toNamedInputStreamEntries(URL),
StreamOrientedChartLoader| Constructor and Description |
|---|
URLChartLoader()
Creates a new
URLChartLoader. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes resources opened by this
URLChartLoader's toNamedInputStreamEntries(URL) method. |
protected InputStream |
openStream(URL url)
Returns an
InputStream corresponding to the supplied
URL. |
protected Iterable<? extends Map.Entry<? extends String,? extends InputStream>> |
toNamedInputStreamEntries(URL url)
Converts the supplied
URL into an Iterable of
Map.Entry instances, each of which consists of an InputStream representing a resource within a Helm chart together
with its (relative to the chart) name. |
createTemplateBuilder, installAny, installConfig, installMetadata, load, loadloadpublic URLChartLoader()
URLChartLoader.protected Iterable<? extends Map.Entry<? extends String,? extends InputStream>> toNamedInputStreamEntries(URL url) throws IOException
URL into an Iterable of
Map.Entry instances, each of which consists of an InputStream representing a resource within a Helm chart together
with its (relative to the chart) name.
This method never returns null.
Overrides of this method are not permitted to return null.
toNamedInputStreamEntries in class StreamOrientedChartLoader<URL>url - the URL to dereference; must be non-null or an effectively empty Iterable will be returnednull Iterable of Map.Entry
instances representing named InputStreamsIOException - if there is a problem reading from the
supplied URLprotected InputStream openStream(URL url) throws IOException
InputStream corresponding to the supplied
URL.
This method may return null.
Overrides of this method are permitted to return null.
url - the URL whose affiliated InputStream
should be returned; may be null in which case null will be returnedInputStream appropriate for the supplied
URL, or nullIOException - if an error occurs while connecting to the
supplied URLpublic void close() throws IOException
URLChartLoader's toNamedInputStreamEntries(URL) method.IOException - if a subclass has overridden this method
and an error occursCopyright © 2017–2018, microBean. All rights reserved.