FileParams

Inheritance: java.lang.Object

public final class FileParams

Defines an embedded file parameter dictionary that shall contain additional file-specific information.

Constructors

ConstructorDescription
FileParams(FileSpecification spec)Constructor for FileParams class.

Methods

MethodDescription
getSize()The size of the uncompressed embedded file, in bytes.
getCreationDate()Get the date and time when the embedded file was created.
setCreationDate(Date value)Set the date and time when the embedded file was created.
getModDate()Get the date and time when the embedded file was last modified.
setModDate(Date value)Set the date and time when the embedded file was last modified.
getCheckSum()A 16-byte string that is the checksum of the bytes of the uncompressed embedded file.

FileParams(FileSpecification spec)

public FileParams(FileSpecification spec)

Constructor for FileParams class.

Parameters:

ParameterTypeDescription
specFileSpecificationFile specification.

getSize()

public int getSize()

The size of the uncompressed embedded file, in bytes.

Returns: int - int value

getCreationDate()

public Date getCreationDate()

Get the date and time when the embedded file was created.

Returns: Date - Date object

setCreationDate(Date value)

public void setCreationDate(Date value)

Set the date and time when the embedded file was created.

Parameters:

ParameterTypeDescription
valuejava.util.DateDate object

getModDate()

public Date getModDate()

Get the date and time when the embedded file was last modified.

Returns: Date - Date object

setModDate(Date value)

public void setModDate(Date value)

Set the date and time when the embedded file was last modified.

Parameters:

ParameterTypeDescription
valuejava.util.DateDate object

getCheckSum()

public String getCheckSum()

A 16-byte string that is the checksum of the bytes of the uncompressed embedded file. The checksum is calculated by applying the standard MD5 message-digest algorithm to the bytes of the embedded file stream.

Returns: java.lang.String - String value