类 AbstractJarWriter
java.lang.Object
org.springframework.boot.loader.tools.AbstractJarWriter
- 所有已实现的接口:
LoaderClassesWriter
- 直接已知子类:
JarWriter
Abstract base class for JAR writers.
- 从以下版本开始:
- 2.3.0
- 作者:
- Phillip Webb, Andy Wilkinson, Madhura Bhave
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
writeEntry
(String entryName, InputStream inputStream) Writes an entry.void
writeEntry
(String entryName, EntryWriter entryWriter) Writes an entry.void
writeIndexFile
(String location, Collection<String> lines) Write a simple index file containing the specified UTF-8 lines.void
Write the default required spring-boot-loader classes to the JAR.void
writeLoaderClasses
(String loaderJarResourceName) Write the required spring-boot-loader classes to the JAR.void
writeLoaderClasses
(LoaderImplementation loaderImplementation) Write the default required spring-boot-loader classes to the JAR.void
writeManifest
(Manifest manifest) Write the specified manifest.void
writeNestedLibrary
(String location, Library library) Write a nested library.protected abstract void
writeToArchive
(ZipEntry entry, EntryWriter entryWriter)
-
构造器详细资料
-
AbstractJarWriter
public AbstractJarWriter()
-
-
方法详细资料
-
writeManifest
Write the specified manifest.- 参数:
manifest
- the manifest to write- 抛出:
IOException
- of the manifest cannot be written
-
writeEntry
Writes an entry. TheinputStream
is closed once the entry has been written- 指定者:
writeEntry
在接口中LoaderClassesWriter
- 参数:
entryName
- the name of the entryinputStream
- the stream from which the entry's data can be read- 抛出:
IOException
- if the write fails
-
writeEntry
Writes an entry. TheinputStream
is closed once the entry has been written- 参数:
entryName
- the name of the entryentryWriter
- the entry writer- 抛出:
IOException
- if the write fails
-
writeNestedLibrary
Write a nested library.- 参数:
location
- the destination of the librarylibrary
- the library- 抛出:
IOException
- if the write fails
-
writeIndexFile
Write a simple index file containing the specified UTF-8 lines.- 参数:
location
- the location of the index filelines
- the lines to write- 抛出:
IOException
- if the write fails- 从以下版本开始:
- 2.3.0
-
writeLoaderClasses
从接口复制的说明:LoaderClassesWriter
Write the default required spring-boot-loader classes to the JAR.- 指定者:
writeLoaderClasses
在接口中LoaderClassesWriter
- 抛出:
IOException
- if the classes cannot be written
-
writeLoaderClasses
从接口复制的说明:LoaderClassesWriter
Write the default required spring-boot-loader classes to the JAR.- 指定者:
writeLoaderClasses
在接口中LoaderClassesWriter
- 参数:
loaderImplementation
- the specific implementation to write- 抛出:
IOException
- if the classes cannot be written
-
writeLoaderClasses
Write the required spring-boot-loader classes to the JAR.- 指定者:
writeLoaderClasses
在接口中LoaderClassesWriter
- 参数:
loaderJarResourceName
- the name of the resource containing the loader classes to be written- 抛出:
IOException
- if the classes cannot be written
-
writeToArchive
- 抛出:
IOException
-