forOrderedSeekableByteChannels

Concatenates the given channels.

Return

SeekableByteChannel that concatenates all provided channels

Parameters

channels

the channels to concatenate, note that the LAST CHANNEL of channels should be the LAST SEGMENT(.zip) and theses channels should be added in correct order (e.g. .z01, .z02... .z99, .zip)

Throws

if channels is null

if reading channels fails


Concatenates the given channels.

Return

SeekableByteChannel that concatenates all provided channels

Parameters

lastSegmentChannel

channel of the last segment of split zip segments, its extension should be .zip

channels

the channels to concatenate except for the last segment, note theses channels should be added in correct order (e.g. .z01, .z02... .z99)

Throws

if lastSegmentChannel or channels is null

if the first channel doesn't seem to hold the beginning of a split archive