Interface LoaderClassesWriter
- All Known Implementing Classes:
JarWriter
public interface LoaderClassesWriter
Writer used byCustomLoaderLayouts
to write classes into a repackaged JAR.- Since:
- 1.5.0
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
Method Detail
writeLoaderClasses
void writeLoaderClasses() throws IOException
Write the default required spring-boot-loader classes to the JAR.- Throws:
IOException
- if the classes cannot be written
writeLoaderClasses
void writeLoaderClasses(String loaderJarResourceName) throws IOException
Write custom required spring-boot-loader classes to the JAR.- Parameters:
loaderJarResourceName
- the name of the resource containing the loader classes to be written- Throws:
IOException
- if the classes cannot be written
writeEntry
void writeEntry(String name, InputStream inputStream) throws IOException
Write a single entry to the JAR.- Parameters:
name
- the name of the entryinputStream
- the input stream content- Throws:
IOException
- if the entry cannot be written