Zip File
Compression and decompress streams using java.util.zip.Zip*Stream
Maven coordinates
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-zipfile-starter</artifactId>
</dependency> Spring Boot Auto-Configuration
The starter supports 5 options, which are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
camel.dataformat.zip-file.allow-empty-directory | If the zip file has more than one entry, setting this option to true, allows to get the iterator even if the directory is empty. | false | Boolean |
camel.dataformat.zip-file.enabled | Whether to enable auto configuration of the zipFile data format. This is enabled by default. | Boolean | |
camel.dataformat.zip-file.max-decompressed-size | Set the maximum decompressed size of a zip file (in bytes). The default value if not specified corresponds to 1 gigabyte. Set to -1 to disable setting a maximum decompressed size. | 1073741824 | Long |
camel.dataformat.zip-file.preserve-path-elements | If the file name contains path elements, setting this option to true, allows the path to be maintained in the zip file. | false | Boolean |
camel.dataformat.zip-file.using-iterator | If the zip file has more than one entry, the setting this option to true, allows working with the splitter EIP, to split the data using an iterator in a streaming mode. | false | Boolean |