Packages
 In this topic

*Constructors

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.util.cab   Previous This
Package
Next

 


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.

Constructors

CabFileEntry

public CabFileEntry();

Creates a new, blank cabinet file entry. To become a valid entry, the filename, date, and attributes must be set in order.

Methods

getApplicationData

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.

getDate

public Date getDate();

Retrieves the modification date and time of this entry.

Return Value:

Returns the date of the entry.

getName

public String getName();

Retrieves the filename of this entry.

Return Value:

Returns the filename.

getSize

public long getSize();

Retrieves the file size of this entry.

Return Value:

Returns the file's size.

isArchive

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.

isHidden

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.

isReadOnly

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.

isSystem

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.

setApplicationData

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.

ParameterDescription
object ??

setArchive

public void setArchive(boolean set);

Sets or clears the archive file attribute.

Return Value:

No return value.

ParameterDescription
set The value that specifies whether to set or clear this attribute.

setDate

public void setDate(Date new_date);

Sets the file date and time of this entry.

Return Value:

No return value.

ParameterDescription
new_date The date to be set.

setHidden

public void setHidden(boolean set);

Sets or clears the hidden file attribute.

Return Value:

No return value.

ParameterDescription
set The value that specifies whether to set or clear the hidden-file attribute.

setName

public void setName(String new_filename);

Sets the filename of this entry.

Return Value:

No return value.

ParameterDescription
new_filename The filename to apply to this entry.

setReadOnly

public void setReadOnly(boolean set);

Sets or clears the read-only file attribute.

Return Value:

No return value.

ParameterDescription
set The value that specifies whether to set or clear this attribute.

setSize

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.

ParameterDescription
new_file_size The file size to be set.

setSystem

public void setSystem(boolean set);

Sets or clears the system file attribute.

Return Value:

No return value.

ParameterDescription
set The value that specifies whether to set or clear this attribute.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.