Package com.ms.util.cab Previous
Previous
Contents
Contents
Index
Index
Next
Next

Class CabFileEntry

Constructors , Methods

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.


Constructors


CabFileEntry

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.


Methods


getDate

public Date getDate();

Gets the modification date and time of this entry.


getName

public String getName();

Gets the file name of this entry.


getSize

public long getSize();

Gets the file size of this entry.


isArchive

public boolean isArchive();

Returns whether this entry has the archive file attribute.


isHidden

public boolean isHidden();

Returns whether this entry has the hidden file attribute.


isReadOnly

public boolean isReadOnly();

Returns whether this entry has the read-only file attribute.


isSystem

public boolean isSystem();

Returns whether this entry has the system file attribute.


setArchive

public void setArchive(boolean set);

Sets or unsets the archive file attribute.

ParameterDescription
set Value that specifies whether to set or unset this attribute.


setDate

public void setDate(Date new_date);

Sets the file date and time of this entry.


setHidden

public void setHidden(boolean set);

Sets or unsets the hidden file attribute.

ParameterDescription
set Value that specifies whether to set or unset the hidden-file attribute.


setName

public void setName(String new_filename);

Sets the file name of this entry.


setReadOnly

public void setReadOnly(boolean set);

Sets or unsets the read-only file attribute.

ParameterDescription
set Value that specifies whether to set or unset this attribute.


setSize

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.


setSystem

public void setSystem(boolean set);

Sets or unsets the system file attribute.

ParameterDescription
set Value that specifies whether to set or unset this attribute.



Top© 1997 Microsoft Corporation. All rights reserved. Legal Notices.