Class ComHelper
Namespace: Aspose.Zip
Assembly: Aspose.Zip.dll (25.5.0)
Provides methods for COM clients to load archives into Aspose.Zip.
public class ComHelper
Inheritance
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
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
ComHelper()
Initializes a new instance of this class.
public ComHelper()
Methods
OpenBzip2(Stream)
Allows a COM application to load a bzip2 archive from a stream.
public Bzip2Archive OpenBzip2(Stream stream)
Parameters
stream
Stream
A .NET stream object that contains the archive to load.
Returns
A Aspose.Zip.Bzip2.Bzip2Archive object that represents the archive.
OpenBzip2(string)
Allows a COM application to load a bzip2 archive from a file.
public Bzip2Archive OpenBzip2(string fileName)
Parameters
fileName
string
Filename of the archive to load.
Returns
A Aspose.Zip.Bzip2.Bzip2Archive object that represents the archive.
OpenGzip(Stream)
Allows a COM application to load a gzip archive from a stream.
public GzipArchive OpenGzip(Stream stream)
Parameters
stream
Stream
A .NET stream object that contains the archive to load.
Returns
A Aspose.Zip.Gzip.GzipArchive object that represents the archive.
OpenGzip(string)
Allows a COM application to load a gzip archive from a file.
public GzipArchive OpenGzip(string fileName)
Parameters
fileName
string
Filename of the archive to load.
Returns
A Aspose.Zip.Gzip.GzipArchive object that represents the archive.
OpenRar(Stream)
Allows a COM application to load a rar archive from a stream.
public RarArchive OpenRar(Stream stream)
Parameters
stream
Stream
A .NET stream object that contains the archive to load.
Returns
A Aspose.Zip.Rar.RarArchive object that represents the archive.
OpenRar(string)
Allows a COM application to load a rar archive from a file.
public RarArchive OpenRar(string fileName)
Parameters
fileName
string
Filename of the archive to load.
Returns
A Aspose.Zip.Rar.RarArchive object that represents the archive.
OpenZip(Stream)
Allows a COM application to load a zip archive from a stream.
public Archive OpenZip(Stream stream)
Parameters
stream
Stream
A .NET stream object that contains the archive to load.
Returns
A Aspose.Zip.Archive object that represents the archive.
OpenZip(string)
Allows a COM application to load a zip archive from a file.
public Archive OpenZip(string fileName)
Parameters
fileName
string
Filename of the archive to load.
Returns
A Aspose.Zip.Archive object that represents the archive.