Class TarFileDataFormat.Builder
java.lang.Object
org.apache.camel.model.dataformat.TarFileDataFormat.Builder
- All Implemented Interfaces:
DataFormatBuilder<TarFileDataFormat>
- Enclosing class:
TarFileDataFormat
public static class TarFileDataFormat.Builder
extends Object
implements DataFormatBuilder<TarFileDataFormat>
Builder
is a specific builder for TarFileDataFormat
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowEmptyDirectory
(boolean allowEmptyDirectory) If the tar file has more than one entry, setting this option to true, allows to get the iterator even if the directory is emptyallowEmptyDirectory
(String allowEmptyDirectory) If the tar file has more than one entry, setting this option to true, allows to get the iterator even if the directory is emptyend()
Ends the build of the data format.maxDecompressedSize
(long maxDecompressedSize) Set the maximum decompressed size of a tar file (in bytes).maxDecompressedSize
(String maxDecompressedSize) Set the maximum decompressed size of a tar file (in bytes).preservePathElements
(boolean preservePathElements) If the file name contains path elements, setting this option to true, allows the path to be maintained in the tar file.preservePathElements
(String preservePathElements) If the file name contains path elements, setting this option to true, allows the path to be maintained in the tar file.usingIterator
(boolean usingIterator) If the tar 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
(String usingIterator) If the tar 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.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
usingIterator
If the tar 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
If the tar 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
If the tar file has more than one entry, setting this option to true, allows to get the iterator even if the directory is empty -
allowEmptyDirectory
If the tar file has more than one entry, setting this option to true, allows to get the iterator even if the directory is empty -
preservePathElements
If the file name contains path elements, setting this option to true, allows the path to be maintained in the tar file. -
preservePathElements
If the file name contains path elements, setting this option to true, allows the path to be maintained in the tar file. -
maxDecompressedSize
Set the maximum decompressed size of a tar 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 tar file (in bytes)
-
maxDecompressedSize
Set the maximum decompressed size of a tar 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 tar file (in bytes)
-
end
Description copied from interface:DataFormatBuilder
Ends the build of the data format.- Specified by:
end
in interfaceDataFormatBuilder<TarFileDataFormat>
- Returns:
- the data format fully built.
-