类 URLChartLoader
- java.lang.Object
-
- org.microbean.helm.chart.AbstractChartLoader<T>
-
- org.microbean.helm.chart.StreamOrientedChartLoader<URL>
-
- org.microbean.helm.chart.URLChartLoader
-
- 所有已实现的接口:
Closeable,AutoCloseable
public class URLChartLoader extends StreamOrientedChartLoader<URL>
AStreamOrientedChartLoader<URL>that createsChartOuterClass.Chartinstances fromURLinstances.Thread Safety
This class is safe for concurrent use by multiple threads.
-
-
构造器概要
构造器 构造器 说明 URLChartLoader()Creates a newURLChartLoader.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()Closes resources opened by thisURLChartLoader'stoNamedInputStreamEntries(URL)method.protected InputStreamopenStream(URL url)Returns anInputStreamcorresponding to the suppliedURL.protected Iterable<? extends Map.Entry<? extends String,? extends InputStream>>toNamedInputStreamEntries(URL url)Converts the suppliedURLinto anIterableofMap.Entryinstances, each of which consists of anInputStreamrepresenting a resource within a Helm chart together with its (relative to the chart) name.-
从类继承的方法 org.microbean.helm.chart.StreamOrientedChartLoader
createTemplateBuilder, installAny, installConfig, installMetadata, load, load
-
从类继承的方法 org.microbean.helm.chart.AbstractChartLoader
load, load
-
-
-
-
构造器详细资料
-
URLChartLoader
public URLChartLoader()
Creates a newURLChartLoader.
-
-
方法详细资料
-
toNamedInputStreamEntries
protected Iterable<? extends Map.Entry<? extends String,? extends InputStream>> toNamedInputStreamEntries(URL url) throws IOException
Converts the suppliedURLinto anIterableofMap.Entryinstances, each of which consists of anInputStreamrepresenting 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在类中StreamOrientedChartLoader<URL>- 参数:
url- theURLto dereference; must be non-nullor an effectively emptyIterablewill be returned- 返回:
- a non-
nullIterableofMap.Entryinstances representing namedInputStreams - 抛出:
IOException- if there is a problem reading from the suppliedURL
-
openStream
protected InputStream openStream(URL url) throws IOException
Returns anInputStreamcorresponding to the suppliedURL.This method may return
null.Overrides of this method are permitted to return
null.- 参数:
url- theURLwhose affiliatedInputStreamshould be returned; may benullin which casenullwill be returned- 返回:
- an
InputStreamappropriate for the suppliedURL, ornull - 抛出:
IOException- if an error occurs while connecting to the suppliedURL
-
close
public void close() throws IOExceptionCloses resources opened by thisURLChartLoader'stoNamedInputStreamEntries(URL)method.- 抛出:
IOException- if a subclass has overridden this method and an error occurs
-
-