Class SevenZipArchiveEntryEncrypted

Class SevenZipArchiveEntryEncrypted

Namespace: Aspose.Zip.SevenZip
Assembly: Aspose.Zip.dll (25.2.0)

Represents single file within 7z archive.

public class SevenZipArchiveEntryEncrypted : SevenZipArchiveEntry, IArchiveFileEntry

Inheritance

objectSevenZipArchiveEntrySevenZipArchiveEntryEncrypted

Implements

IArchiveFileEntry

Inherited Members

SevenZipArchiveEntry.GetDestinationStream(Stream), SevenZipArchiveEntry.FinalizeCompressedData(Stream, byte[]), SevenZipArchiveEntry.Extract(string, string), SevenZipArchiveEntry.Extract(Stream, string), SevenZipArchiveEntry.Open(string), SevenZipArchiveEntry.Name, SevenZipArchiveEntry.ModificationTime, SevenZipArchiveEntry.UncompressedSize, SevenZipArchiveEntry.CompressedSize, SevenZipArchiveEntry.IsDirectory, SevenZipArchiveEntry.CompressionSettings, SevenZipArchiveEntry.Source, SevenZipArchiveEntry.FileAttributes, SevenZipArchiveEntry.CompressionProgressed, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Remarks

Cast an Aspose.Zip.SevenZip.SevenZipArchiveEntry instance to Aspose.Zip.SevenZip.SevenZipArchiveEntryEncrypted to determine whether the entry encrypted or not.

Methods

FinalizeCompressedData(Stream, byte[])

Write to output stream any headers that follow compressed data.

protected override int FinalizeCompressedData(Stream outputStream, byte[] encoderProperties)

Parameters

outputStream Stream

Output stream for the entry.

encoderProperties byte[]

Properties of compressor.

Returns

int

Number of “technical” bytes that were added after entry significant data block.

Exceptions

CryptographicException

The key is corrupt which can cause invalid padding to the stream.

NotSupportedException

The final block has already been transformed.

GetDestinationStream(Stream)

Destination stream for the entry, may be decorated.

protected override Stream GetDestinationStream(Stream outputStream)

Parameters

outputStream Stream

Output stream for the entry.

Returns

Stream

The destination stream for entry compression.

 English