Class ZipFileDataFormat.Builder
- java.lang.Object
-
- org.apache.camel.model.dataformat.ZipFileDataFormat.Builder
-
- All Implemented Interfaces:
DataFormatBuilder<ZipFileDataFormat>
- Enclosing class:
- ZipFileDataFormat
public static class ZipFileDataFormat.Builder extends Object implements DataFormatBuilder<ZipFileDataFormat>
Builder
is a specific builder forZipFileDataFormat
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZipFileDataFormat.Builder
allowEmptyDirectory(boolean 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 emptyZipFileDataFormat.Builder
allowEmptyDirectory(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 emptyZipFileDataFormat
end()
Ends the build of the data format.ZipFileDataFormat.Builder
maxDecompressedSize(long maxDecompressedSize)
Set the maximum decompressed size of a zip file (in bytes).ZipFileDataFormat.Builder
maxDecompressedSize(String maxDecompressedSize)
Set the maximum decompressed size of a zip file (in bytes).ZipFileDataFormat.Builder
preservePathElements(boolean preservePathElements)
If the file name contains path elements, setting this option to true, allows the path to be maintained in the zip file.ZipFileDataFormat.Builder
preservePathElements(String preservePathElements)
If the file name contains path elements, setting this option to true, allows the path to be maintained in the zip file.ZipFileDataFormat.Builder
usingIterator(boolean 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.ZipFileDataFormat.Builder
usingIterator(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.
-
-
-
Method Detail
-
usingIterator
public ZipFileDataFormat.Builder usingIterator(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.
-
usingIterator
public ZipFileDataFormat.Builder usingIterator(boolean 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.
-
allowEmptyDirectory
public ZipFileDataFormat.Builder allowEmptyDirectory(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
-
allowEmptyDirectory
public ZipFileDataFormat.Builder allowEmptyDirectory(boolean 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
-
preservePathElements
public ZipFileDataFormat.Builder preservePathElements(String preservePathElements)
If the file name contains path elements, setting this option to true, allows the path to be maintained in the zip file.
-
preservePathElements
public ZipFileDataFormat.Builder preservePathElements(boolean preservePathElements)
If the file name contains path elements, setting this option to true, allows the path to be maintained in the zip file.
-
maxDecompressedSize
public ZipFileDataFormat.Builder maxDecompressedSize(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)
-
maxDecompressedSize
public ZipFileDataFormat.Builder maxDecompressedSize(long 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)
-
end
public ZipFileDataFormat end()
Description copied from interface:DataFormatBuilder
Ends the build of the data format.- Specified by:
end
in interfaceDataFormatBuilder<ZipFileDataFormat>
- Returns:
- the data format fully built.
-
-