类 LayersIndex
java.lang.Object
org.springframework.boot.loader.tools.LayersIndex
Index describing the layer to which each entry in a jar belongs. Index files are simple
text files that should be read from top to bottom. Each file defines the layers and
their content. Layer names are written as quoted strings prefixed by a dash space
(
"- "
) and with a colon (":"
) suffix. Layer content is either a file or
directory name written as a quoted string prefixed by space space dash space
(" - "
). A directory name ends with /
, a file name does not. When a
directory name is used it means that all files inside that directory are in the same
layer.
Index files are designed to be compatible with YAML and may be read into a list of
Map<String, List<String>>
instances.
- 从以下版本开始:
- 2.3.0
- 作者:
- Madhura Bhave, Andy Wilkinson, Phillip Webb
-
构造器概要
构造器构造器说明LayersIndex
(Iterable<Layer> layers) Create a newLayersIndex
backed by the given layers.LayersIndex
(Layer... layers) Create a newLayersIndex
backed by the given layers. -
方法概要
修饰符和类型方法说明void
Add an item to the index.void
writeTo
(OutputStream out) Write the layer index to an output stream.
-
构造器详细资料
-
LayersIndex
Create a newLayersIndex
backed by the given layers.- 参数:
layers
- the layers in the index
-
LayersIndex
Create a newLayersIndex
backed by the given layers.- 参数:
layers
- the layers in the index
-
-
方法详细资料
-
add
Add an item to the index.- 参数:
layer
- the layer of the itemname
- the name of the item
-
writeTo
Write the layer index to an output stream.- 参数:
out
- the destination stream- 抛出:
IOException
- on IO error
-