Packages
 In this topic

*Methods

 

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

 


Interface CabProgressInterface

public interface CabProgressInterface
{
  // Methods
  Object progress(int progress_type, long val1, long val2, Object[]
        progress_data);
}

This interface is used by both the CabCreator and CabDecoder classes to report progress when creating or decoding a cabinet file. Currently, the only progress message supported is CAB_PROGRESS_INPUT, which is sent by CabCreator when processing input streams. For this message, progress_data[0] is a CabFileEntry object that corresponds to the file being compressed, and progress_data[1] is the position of the compressor in the input stream of that file. The application should return null in response to this message.

Methods

progress

Object progress(int progress_type, long val1, long val2,
        Object[] progress_data);

Return Value:

Returns a return code specific to the type of progress message.

An application should return null for any progress messages it does not handle. Currently, null should be returned for all progress messages.

ParameterDescription
progress_type The progress type as defined in the CabConstants interface.
val1 The value of this parameter is specific to the progress message type.
val2 The value of this parameter is specific to the progress message type.
progress_data Progress data as defined by the progress type.

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