IVolumeStreamProvider

public interface IVolumeStreamProvider

Provider of streams for multi-volume archive composition.

Methods

MethodDescription
getNextVolume()Provides the next stream for a volume of a split archive.
volumeCompleted(int index, OutputStream stream, boolean isLast)Called after a volume of a split (multi-volume) archive has been written.

getNextVolume()

public abstract OutputStream getNextVolume()

Provides the next stream for a volume of a split archive.

Returns: java.io.OutputStream - the stream for the next volume.

volumeCompleted(int index, OutputStream stream, boolean isLast)

public abstract void volumeCompleted(int index, OutputStream stream, boolean isLast)

Called after a volume of a split (multi-volume) archive has been written.

Parameters:

ParameterTypeDescription
indexintthe number of the volume written, starting from zero.
streamjava.io.OutputStreamthe destination stream the volume was written to.
isLastbooleanwhether the volume finishes the archive.