SplitArchiveSaveOptions

Inheritance: java.lang.Object

public class SplitArchiveSaveOptions

Options for saving a multi-volume zip archive.

Constructors

ConstructorDescription
SplitArchiveSaveOptions(String fileName, long segmentSize)Instantiates settings for saving a multi-volume zip archive.

Methods

MethodDescription
getArchiveComment()Gets optional comment for the Zip file.
getEncoding()Gets encoding for converting file names and other strings to bytes.
getFileName()Gets the name of segments without extension.
getSegmentSize()Gets the size of segment.
setArchiveComment(String value)Sets optional comment for the Zip file.
setEncoding(Charset value)Sets encoding for converting file names and other strings to bytes.

SplitArchiveSaveOptions(String fileName, long segmentSize)

public SplitArchiveSaveOptions(String fileName, long segmentSize)

Instantiates settings for saving a multi-volume zip archive.

Some volumes may be less than segmentSize. In most cases the last segment will be less but rarely regular segments might be too.

Names of files will be as follows: fileName.z01, fileName.z02, …, fileName.z(n-1), fileName.zip.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringName for volumes. May be with or without .zip extension.
segmentSizelongSize of volume.

getArchiveComment()

public final String getArchiveComment()

Gets optional comment for the Zip file.

Returns: java.lang.String - optional comment for the Zip file.

getEncoding()

public final Charset getEncoding()

Gets encoding for converting file names and other strings to bytes.

If not set, code page 437 will be used.

Returns: java.nio.charset.Charset - encoding for converting file names and other strings to bytes.

getFileName()

public final String getFileName()

Gets the name of segments without extension.

Returns: java.lang.String - the name of segments without extension.

getSegmentSize()

public final long getSegmentSize()

Gets the size of segment.

Returns: long - the size of segment.

setArchiveComment(String value)

public final void setArchiveComment(String value)

Sets optional comment for the Zip file.

Parameters:

ParameterTypeDescription
valuejava.lang.Stringoptional comment for the Zip file.

setEncoding(Charset value)

public final void setEncoding(Charset value)

Sets encoding for converting file names and other strings to bytes.

If not set, code page 437 will be used.

Parameters:

ParameterTypeDescription
valuejava.nio.charset.Charsetencoding for converting file names and other strings to bytes.