public abstract class AbstractJarWriter extends java.lang.Object implements LoaderClassesWriter
| Constructor and Description | 
|---|
AbstractJarWriter()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
writeEntry(java.lang.String entryName,
          EntryWriter entryWriter)
Writes an entry. 
 | 
void | 
writeEntry(java.lang.String entryName,
          java.io.InputStream inputStream)
Writes an entry. 
 | 
void | 
writeIndexFile(java.lang.String location,
              java.util.Collection<java.lang.String> lines)
Write a simple index file containing the specified UTF-8 lines. 
 | 
void | 
writeLoaderClasses()
Write the required spring-boot-loader classes to the JAR. 
 | 
void | 
writeLoaderClasses(java.lang.String loaderJarResourceName)
Write the required spring-boot-loader classes to the JAR. 
 | 
void | 
writeManifest(java.util.jar.Manifest manifest)
Write the specified manifest. 
 | 
void | 
writeNestedLibrary(java.lang.String location,
                  Library library)
Write a nested library. 
 | 
protected abstract void | 
writeToArchive(java.util.zip.ZipEntry entry,
              EntryWriter entryWriter)  | 
public void writeManifest(java.util.jar.Manifest manifest)
                   throws java.io.IOException
manifest - the manifest to writejava.io.IOException - of the manifest cannot be writtenpublic void writeEntry(java.lang.String entryName,
                       java.io.InputStream inputStream)
                throws java.io.IOException
inputStream is closed once the entry has been writtenwriteEntry in interface LoaderClassesWriterentryName - the name of the entryinputStream - the stream from which the entry's data can be readjava.io.IOException - if the write failspublic void writeEntry(java.lang.String entryName,
                       EntryWriter entryWriter)
                throws java.io.IOException
inputStream is closed once the entry has been writtenentryName - the name of the entryentryWriter - the entry writerjava.io.IOException - if the write failspublic void writeNestedLibrary(java.lang.String location,
                               Library library)
                        throws java.io.IOException
location - the destination of the librarylibrary - the libraryjava.io.IOException - if the write failspublic void writeIndexFile(java.lang.String location,
                           java.util.Collection<java.lang.String> lines)
                    throws java.io.IOException
location - the location of the index filelines - the lines to writejava.io.IOException - if the write failspublic void writeLoaderClasses()
                        throws java.io.IOException
writeLoaderClasses in interface LoaderClassesWriterjava.io.IOException - if the classes cannot be writtenpublic void writeLoaderClasses(java.lang.String loaderJarResourceName)
                        throws java.io.IOException
writeLoaderClasses in interface LoaderClassesWriterloaderJarResourceName - the name of the resource containing the loader classes
 to be writtenjava.io.IOException - if the classes cannot be writtenprotected abstract void writeToArchive(java.util.zip.ZipEntry entry,
                                       EntryWriter entryWriter)
                                throws java.io.IOException
java.io.IOException