ComHelper

Inheritance: java.lang.Object

public class ComHelper

Provides methods for COM clients to load archives into Aspose.Zip.

Use the ComHelper class to load an archive from a file or stream. Particular classes provide a default constructor to create a new archive and also provides overloaded constructors to load an archive from a file or stream. If you are using Aspose.Zip from a .NET application, you can use all the archive constructors directly, but if you are using Aspose.Zip from a COM application, only the default archive constructor is available.

Constructors

ConstructorDescription
ComHelper()Initializes a new instance of this class.

Methods

MethodDescription
openBzip2(InputStream stream)Allows a COM application to load a bzip2 archive from a stream.
openBzip2(String fileName)Allows a COM application to load a bzip2 archive from a file.
openGzip(InputStream stream)Allows a COM application to load a gzip archive from a stream.
openGzip(String fileName)Allows a COM application to load a gzip archive from a file.
openRar(InputStream stream)Allows a COM application to load a rar archive from a stream.
openRar(String fileName)Allows a COM application to load a rar archive from a file.
openZip(InputStream stream)Allows a COM application to load a ZIP archive from a stream.
openZip(String fileName)Allows a COM application to load a ZIP archive from a file.

ComHelper()

public ComHelper()

Initializes a new instance of this class.

openBzip2(InputStream stream)

public final Bzip2Archive openBzip2(InputStream stream)

Allows a COM application to load a bzip2 archive from a stream.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamA .NET stream object that contains the archive to load.

Returns: Bzip2Archive - A Bzip2Archive object that represents the archive.

openBzip2(String fileName)

public final Bzip2Archive openBzip2(String fileName)

Allows a COM application to load a bzip2 archive from a file.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringFilename of the archive to load.

Returns: Bzip2Archive - A Bzip2Archive object that represents the archive.

openGzip(InputStream stream)

public final GzipArchive openGzip(InputStream stream)

Allows a COM application to load a gzip archive from a stream.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamA .NET stream object that contains the archive to load.

Returns: GzipArchive - A GzipArchive object that represents the archive.

openGzip(String fileName)

public final GzipArchive openGzip(String fileName)

Allows a COM application to load a gzip archive from a file.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringFilename of the archive to load.

Returns: GzipArchive - A GzipArchive object that represents the archive.

openRar(InputStream stream)

public final RarArchive openRar(InputStream stream)

Allows a COM application to load a rar archive from a stream.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamA .NET stream object that contains the archive to load.

Returns: RarArchive - A RarArchive object that represents the archive.

openRar(String fileName)

public final RarArchive openRar(String fileName)

Allows a COM application to load a rar archive from a file.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringFilename of the archive to load.

Returns: RarArchive - A RarArchive object that represents the archive.

openZip(InputStream stream)

public final Archive openZip(InputStream stream)

Allows a COM application to load a ZIP archive from a stream.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamA .NET stream object that contains the archive to load.

Returns: Archive - A Archive object that represents the archive.

openZip(String fileName)

public final Archive openZip(String fileName)

Allows a COM application to load a ZIP archive from a file.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringFilename of the archive to load.

Returns: Archive - A Archive object that represents the archive.