类 DirectoryChartLoader
- java.lang.Object
-
- org.microbean.helm.chart.AbstractChartLoader<T>
-
- org.microbean.helm.chart.StreamOrientedChartLoader<Path>
-
- org.microbean.helm.chart.DirectoryChartLoader
-
- 所有已实现的接口:
Closeable,AutoCloseable
public class DirectoryChartLoader extends StreamOrientedChartLoader<Path>
AStreamOrientedChartLoader<Path>that createsChartOuterClass.Chartinstances from filesystem directories represented asPathobjects.
-
-
构造器概要
构造器 构造器 说明 DirectoryChartLoader()Creates a newDirectoryChartLoader.DirectoryChartLoader(boolean followSymlinks)Creates a newDirectoryChartLoader.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()Does nothing on purpose.protected Iterable<? extends Map.Entry<? extends String,? extends InputStream>>toNamedInputStreamEntries(Path path)Converts the suppliedPath, which must be non-nulland a directory, into anIterableofMap.Entryinstances, each of which consists of anInputStreamassociated with a name.-
从类继承的方法 org.microbean.helm.chart.StreamOrientedChartLoader
createTemplateBuilder, installAny, installConfig, installMetadata, load, load
-
从类继承的方法 org.microbean.helm.chart.AbstractChartLoader
load, load
-
-
-
-
构造器详细资料
-
DirectoryChartLoader
public DirectoryChartLoader()
Creates a newDirectoryChartLoader.When loading charts, symbolic links are not followed.
-
DirectoryChartLoader
public DirectoryChartLoader(boolean followSymlinks)
Creates a newDirectoryChartLoader.- 参数:
followSymlinks- iftrue, then symbolic links will be followed during chart loading
-
-
方法详细资料
-
toNamedInputStreamEntries
protected Iterable<? extends Map.Entry<? extends String,? extends InputStream>> toNamedInputStreamEntries(Path path) throws IOException
Converts the suppliedPath, which must be non-nulland a directory, into anIterableofMap.Entryinstances, each of which consists of anInputStreamassociated with a name.This method never returns
null.Overrides of this method are not permitted to return
null.- 指定者:
toNamedInputStreamEntries在类中StreamOrientedChartLoader<Path>- 参数:
path- thePathto read; must be non-nulland must be a directory or an effectively emptyIterablewill be returned- 返回:
- a non-
nullIterableofMap.Entryinstances representing namedInputStreams - 抛出:
IOException- if there is a problem reading from the directory represented by the suppliedPathor any of its subdirectories or files
-
close
public void close() throws IOExceptionDoes nothing on purpose.- 抛出:
IOException- if a subclass has overridden this method and an error occurs
-
-