Class CabFileEntry
final public class CabFileEntry
{
// Constructors
public CabFileEntry();
// Methods
public Object getApplicationData();
public Date getDate();
public String getName();
public long getSize();
public boolean isArchive();
public boolean isHidden();
public boolean isReadOnly();
public boolean isSystem();
public void setApplicationData(Object object);
public void setArchive(boolean set);
public void setDate(Date new_date);
public void setHidden(boolean set);
public void setName(String new_filename);
public void setReadOnly(boolean set);
public void setSize(long new_file_size);
public void setSystem(boolean set);
}
This class is used to represent file entries stored in the cabinet.
public CabFileEntry();
Creates a new, blank cabinet file entry. To become a valid entry, the filename, date, and attributes must be set in order.
public Object getApplicationData();
Retrieves the application data stored in this CabFileEntry object. Note that the application data is not recorded in the cabinet; the lifetime of this data is the lifetime of this CabFileEntry object.
Return Value:
Returns the application data.
public Date getDate();
Retrieves the modification date and time of this entry.
Return Value:
Returns the date of the entry.
public String getName();
Retrieves the filename of this entry.
Return Value:
Returns the filename.
public long getSize();
Retrieves the file size of this entry.
Return Value:
Returns the file's size.
public boolean isArchive();
Determines if this entry has the archive file attribute set.
Return Value:
Returns true if the archive file attribute is set; otherwise, returns false.
public boolean isHidden();
Determines if this entry has the hidden file attribute set.
Return Value:
Returns true if the hidden file attribute is set; otherwise, returns false.
public boolean isReadOnly();
Determines if this entry has the read-only file attribute set.
Return Value:
Returns true if the read-only file attribute is set; otherwise, returns false.
public boolean isSystem();
Determines if this entry has the system file attribute set.
Return Value:
Returns true if the system file attribute is set; otherwise, returns false.
public void setApplicationData(Object object);
Stores some application data in this CabFileEntry. Note that the application data is not recorded in the cabinet; the lifetime of this data is the lifetime of this CabFileEntry object.
Return Value:
No return value.
Parameter | Description |
object
| ??
|
public void setArchive(boolean set);
Sets or clears the archive file attribute.
Return Value:
No return value.
Parameter | Description |
set
| The value that specifies whether to set or clear this attribute.
|
public void setDate(Date new_date);
Sets the file date and time of this entry.
Return Value:
No return value.
Parameter | Description |
new_date
| The date to be set.
|
public void setHidden(boolean set);
Sets or clears the hidden file attribute.
Return Value:
No return value.
Parameter | Description |
set
| The value that specifies whether to set or clear the hidden-file attribute.
|
public void setName(String new_filename);
Sets the filename of this entry.
Return Value:
No return value.
Parameter | Description |
new_filename
| The filename to apply to this entry.
|
public void setReadOnly(boolean set);
Sets or clears the read-only file attribute.
Return Value:
No return value.
Parameter | Description |
set
| The value that specifies whether to set or clear this attribute.
|
public void setSize(long new_file_size);
Sets the file size of this entry. The file size must be less than or equal to Integer.MAX_VALUE.
Return Value:
No return value.
Parameter | Description |
new_file_size
| The file size to be set.
|
public void setSystem(boolean set);
Sets or clears the system file attribute.
Return Value:
No return value.
Parameter | Description |
set
| The value that specifies whether to set or clear this attribute.
|