SplitCabSaveOptions

Inheritance: java.lang.Object

public class SplitCabSaveOptions

Options for saving a multi-volume CAB archive.

Constructors

ConstructorDescription
SplitCabSaveOptions(String fileName, long segmentSize)Creates options for volumes named with a one-based number and a .cab extension, such as volume1.cab and volume2.cab.

Methods

MethodDescription
getCloseEntrySource()Reports whether saving closes each entry’s source after compression.
getFileName()Gets the common base name used to generate the numbered CAB file names.
getSegmentSize()Gets the size limit used when writing each CAB volume.
getSkipChecksumCalculation()Reports whether checksum calculation is disabled for CAB data blocks.
setCloseEntrySource(boolean value)Controls whether saving closes each entry’s source as soon as its compression completes.
setSkipChecksumCalculation(boolean value)Controls whether checksums are calculated for CAB data blocks.

SplitCabSaveOptions(String fileName, long segmentSize)

public SplitCabSaveOptions(String fileName, long segmentSize)

Creates options for volumes named with a one-based number and a .cab extension, such as volume1.cab and volume2.cab.

Parameters:

ParameterTypeDescription
fileNamejava.lang.Stringbase file name, with an optional .cab extension
segmentSizelongmaximum volume size, from 65536 to 2147483647 bytes inclusive

getCloseEntrySource()

public final boolean getCloseEntrySource()

Reports whether saving closes each entry’s source after compression.

Returns: boolean - true if entry sources are closed after compression

getFileName()

public final String getFileName()

Gets the common base name used to generate the numbered CAB file names.

Returns: java.lang.String - the base name without the .cab extension

getSegmentSize()

public final long getSegmentSize()

Gets the size limit used when writing each CAB volume.

Returns: long - the maximum volume size in bytes

getSkipChecksumCalculation()

public final boolean getSkipChecksumCalculation()

Reports whether checksum calculation is disabled for CAB data blocks.

Returns: boolean - true if checksums are skipped

setCloseEntrySource(boolean value)

public final void setCloseEntrySource(boolean value)

Controls whether saving closes each entry’s source as soon as its compression completes.

Parameters:

ParameterTypeDescription
valuebooleantrue to close entry sources after compression

setSkipChecksumCalculation(boolean value)

public final void setSkipChecksumCalculation(boolean value)

Controls whether checksums are calculated for CAB data blocks.

Parameters:

ParameterTypeDescription
valuebooleantrue to skip checksum calculation