Skip to main content

Module tar_splitter

Module tar_splitter 

Source
Expand description

TAR and TAR.GZ stream splitters: metadata constants, bounded configuration, and the TAR-specific error surface.

Splitting itself (bounded sequential TAR reading over materialized bytes) is layered on this contract. Entry names are validated through the shared archive path validator, so TAR and ZIP reject the same unsafe shapes with format-prefixed error text. TAR.GZ runs the same reader over the output of the bounded single-member GZIP decoder shared with GzipDataFormat; concatenated multi-member GZIP input is rejected instead of silently split.

Structs§

TarSplitConfig
Bounded configuration for TAR and TAR.GZ stream splitting.

Constants§

CAMEL_TAR_ENTRY_INDEX
CAMEL_TAR_ENTRY_IS_DIRECTORY
CAMEL_TAR_ENTRY_NAME
CAMEL_TAR_ENTRY_PATH
CAMEL_TAR_ENTRY_SIZE

Functions§

split_tar_bytes
Split a TAR archive’s materialized bytes into a stream of Exchanges, one per regular-file entry in header order.
split_tar_gz_bytes
Split a single-member TAR.GZ stream into a stream of Exchanges, one per regular-file entry in header order.
tar_gz_splitter
Build a StreamingSplitExpression that splits single-member TAR.GZ bodies into per-entry Exchanges after bounded GZIP decoding.
tar_splitter
Build a StreamingSplitExpression that splits TAR archive bodies into per-entry Exchanges.