接口 LoaderClassesWriter
- 所有已知实现类:
AbstractJarWriter
,JarWriter
public interface LoaderClassesWriter
Writer used by
CustomLoaderLayouts
to write classes into a
repackaged JAR.- 从以下版本开始:
- 1.5.0
- 作者:
- Phillip Webb
-
方法概要
修饰符和类型方法说明void
writeEntry
(String name, InputStream inputStream) Write a single entry to the JAR.void
Write the default required spring-boot-loader classes to the JAR.void
writeLoaderClasses
(String loaderJarResourceName) Write custom required spring-boot-loader classes to the JAR.void
writeLoaderClasses
(LoaderImplementation loaderImplementation) Write the default required spring-boot-loader classes to the JAR.
-
方法详细资料
-
writeLoaderClasses
Write the default required spring-boot-loader classes to the JAR.- 抛出:
IOException
- if the classes cannot be written
-
writeLoaderClasses
Write the default required spring-boot-loader classes to the JAR.- 参数:
loaderImplementation
- the specific implementation to write- 抛出:
IOException
- if the classes cannot be written- 从以下版本开始:
- 3.2.0
-
writeLoaderClasses
Write custom required spring-boot-loader classes to the JAR.- 参数:
loaderJarResourceName
- the name of the resource containing the loader classes to be written- 抛出:
IOException
- if the classes cannot be written
-
writeEntry
Write a single entry to the JAR.- 参数:
name
- the name of the entryinputStream
- the input stream content- 抛出:
IOException
- if the entry cannot be written
-