Package com.ms.util.cab |
![]() Previous |
![]() Contents |
![]() Index |
![]() Next |
public class CabFileEntry { // Constructors public CabFileEntry(); // Methods public String getName(); public long getSize(); public Date getDate(); public boolean isReadOnly(); public boolean isArchive(); public boolean isSystem(); public boolean isHidden(); public void setName(String new_filename); public void setSize(long new_file_size); public void setDate(Date new_date); public void setReadOnly(boolean set); public void setArchive(boolean set); public void setSystem(boolean set); public void setHidden(boolean set); }
This class is used to represent file entries stored in the cabinet.
public CabFileEntry();Creates a new blank cabinet file entry. The file name, date, and attributes must be set in order for this to become a valid entry.
public Date getDate();Gets the modification date and time of this entry.
public String getName();Gets the file name of this entry.
public long getSize();Gets the file size of this entry.
public boolean isArchive();Returns whether this entry has the archive file attribute.
public boolean isHidden();Returns whether this entry has the hidden file attribute.
public boolean isReadOnly();Returns whether this entry has the read-only file attribute.
public boolean isSystem();Returns whether this entry has the system file attribute.
public void setArchive(boolean set);Sets or unsets the archive file attribute.
Parameter Description set Value that specifies whether to set or unset this attribute.
public void setDate(Date new_date);Sets the file date and time of this entry.
public void setHidden(boolean set);Sets or unsets the hidden file attribute.
Parameter Description set Value that specifies whether to set or unset the hidden-file attribute.
public void setName(String new_filename);Sets the file name of this entry.
public void setReadOnly(boolean set);Sets or unsets the read-only file attribute.
Parameter Description set Value that specifies whether to set or unset this attribute.
public void setSize(long new_file_size);Sets the file size of this entry. The file size may be no larger than Integer.MAX_VALUE.
public void setSystem(boolean set);Sets or unsets the system file attribute.
Parameter Description set Value that specifies whether to set or unset this attribute.
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.