FileParams
Inheritance: java.lang.Object
public final class FileParams
Defines an embedded file parameter dictionary that shall contain additional file-specific information.
Constructors
Constructor | Description |
---|---|
FileParams(FileSpecification spec) | Constructor for FileParams class. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
spec | FileSpecification | File 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:
Parameter | Type | Description |
---|---|---|
value | java.util.Date | Date 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:
Parameter | Type | Description |
---|---|---|
value | java.util.Date | Date 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