Class ZipFileDataFormat
- java.lang.Object
-
- org.apache.camel.model.IdentifiedType
-
- org.apache.camel.model.DataFormatDefinition
-
- org.apache.camel.model.dataformat.ZipFileDataFormat
-
@Metadata(firstVersion="2.11.0", label="dataformat,transformation,file", title="Zip File") public class ZipFileDataFormat extends DataFormatDefinition
Compression and decompress streams using java.util.zip.Zip*Stream.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ZipFileDataFormat.Builder
Builder
is a specific builder forZipFileDataFormat
.
-
Constructor Summary
Constructors Constructor Description ZipFileDataFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAllowEmptyDirectory()
String
getMaxDecompressedSize()
String
getPreservePathElements()
String
getUsingIterator()
void
setAllowEmptyDirectory(String allowEmptyDirectory)
If the zip file has more than one entry, setting this option to true, allows to get the iterator even if the directory is emptyvoid
setMaxDecompressedSize(String maxDecompressedSize)
Set the maximum decompressed size of a zip file (in bytes).void
setPreservePathElements(String preservePathElements)
If the file name contains path elements, setting this option to true, allows the path to be maintained in the zip file.void
setUsingIterator(String usingIterator)
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.-
Methods inherited from class org.apache.camel.model.DataFormatDefinition
getDataFormat, getDataFormatName, getShortName, setDataFormat, setDataFormatName
-
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
-
-
-
Method Detail
-
getUsingIterator
public String getUsingIterator()
-
getAllowEmptyDirectory
public String getAllowEmptyDirectory()
-
getPreservePathElements
public String getPreservePathElements()
-
getMaxDecompressedSize
public String getMaxDecompressedSize()
-
setUsingIterator
public void setUsingIterator(String usingIterator)
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.
-
setAllowEmptyDirectory
public void setAllowEmptyDirectory(String allowEmptyDirectory)
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
-
setPreservePathElements
public void setPreservePathElements(String preservePathElements)
If the file name contains path elements, setting this option to true, allows the path to be maintained in the zip file.
-
setMaxDecompressedSize
public void setMaxDecompressedSize(String maxDecompressedSize)
Set the maximum decompressed size of a zip file (in bytes). The default value if not specified corresponds to 1 gigabyte. An IOException will be thrown if the decompressed size exceeds this amount. Set to -1 to disable setting a maximum decompressed size.- Parameters:
maxDecompressedSize
- the maximum decompressed size of a zip file (in bytes)
-
-