接口 InfraZipCopyAction.ZipEntryContentWriter
- 封闭类:
- InfraZipCopyAction
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Callback used to write a zip entry data.
-
方法概要
修饰符和类型方法说明Create a newInfraZipCopyAction.ZipEntryContentWriterthat will copy content from the givenInputStream.fromLines(String encoding, Collection<String> lines) Create a newInfraZipCopyAction.ZipEntryContentWriterthat will copy content from the given lines.voidwriteTo(org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream out) Write the entry data.
-
方法详细资料
-
writeTo
void writeTo(org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream out) throws IOException Write the entry data.- 参数:
out- the output stream used to write the data- 抛出:
IOException- on IO error
-
fromInputStream
Create a newInfraZipCopyAction.ZipEntryContentWriterthat will copy content from the givenInputStream.- 参数:
in- the source input stream- 返回:
- a new
InfraZipCopyAction.ZipEntryContentWriterinstance
-
fromLines
static InfraZipCopyAction.ZipEntryContentWriter fromLines(String encoding, Collection<String> lines) Create a newInfraZipCopyAction.ZipEntryContentWriterthat will copy content from the given lines.- 参数:
encoding- the required character encodinglines- the lines to write- 返回:
- a new
InfraZipCopyAction.ZipEntryContentWriterinstance
-