接口 LoaderClassesWriter
- 所有已知实现类:
- JarWriter
 - public interface LoaderClassesWriter Writer used by- CustomLoaderLayoutsto write classes into a repackaged JAR.- 从以下版本开始:
- 1.5.0
 
- 方法概要- 所有方法 实例方法 抽象方法 - 修饰符和类型 - 方法 - 说明 - void- writeEntry(String name, InputStream inputStream)Write a single entry to the JAR.- void- writeLoaderClasses()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.
 
- 方法详细资料- writeLoaderClasses- void writeLoaderClasses() throws IOException Write the default required spring-boot-loader classes to the JAR.- 抛出:
- IOException- if the classes cannot be written
 
 - writeLoaderClasses- void writeLoaderClasses(String loaderJarResourceName) throws IOException 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- void writeEntry(String name, InputStream inputStream) throws IOException Write a single entry to the JAR.- 参数:
- name- the name of the entry
- inputStream- the input stream content
- 抛出:
- IOException- if the entry cannot be written