Package org.frankframework.compression
Class ZipWriter
java.lang.Object
org.frankframework.compression.ZipWriter
- All Implemented Interfaces:
AutoCloseable
,ICollector<MessageZipEntry>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(List<MessageZipEntry> parts) 'builds' the collection and returns a persistent Messagevoid
close()
createPart
(Message input, PipeLineSession session, ParameterValueList pvl) Add a single item to the collection
-
Constructor Details
-
ZipWriter
public ZipWriter(boolean includeFileHeaders) -
ZipWriter
Create a new ZipWriterCollector- Parameters:
includeFileHeaders
- whether to calculate the size and crc for each entryzipLocation
- if exists the file should be placed here, for legacy / deprecated purposes only!
-
-
Method Details
-
createPart
public MessageZipEntry createPart(Message input, PipeLineSession session, ParameterValueList pvl) throws CollectionException Description copied from interface:ICollector
Add a single item to the collection- Specified by:
createPart
in interfaceICollector<MessageZipEntry>
- Throws:
CollectionException
-
build
Description copied from interface:ICollector
'builds' the collection and returns a persistent Message- Specified by:
build
in interfaceICollector<MessageZipEntry>
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-