New to Telerik Document ProcessingStart a free 30-day trial

Platform manager which can be used with full version of the .NET Framework.

Definition

Namespace:Telerik.Windows.Zip.Extensions

Assembly:Telerik.Windows.Zip.Extensions.dll

Syntax:

C#
public class DotNetPlatformManager : IPlatformManager

Inheritance: objectDotNetPlatformManager

Implements: IPlatformManager

Constructors

Initializes a new instance of the DotNetPlatformManager class.

C#
public DotNetPlatformManager()

Methods

Creates temporary stream.

C#
[SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")]
public Stream CreateTemporaryStream()
Returns:

Stream

Stream will be used for temporary operations.

Implements: IPlatformManager.CreateTemporaryStream()

Deletes temporary stream.

C#
public void DeleteTemporaryStream(Stream stream)
Parameters:streamStream

Stream to delete.

Implements: IPlatformManager.DeleteTemporaryStream(Stream)

Gets crypto provider initialized using given encryption settings.

C#
public ICryptoProvider GetCryptoProvider(EncryptionSettingsBase settings)
Parameters:settingsEncryptionSettingsBase

Encryption settings.

Returns:

ICryptoProvider

Crypto provider.

Exceptions:

NotSupportedException

Specified crypto algorithm is not supported.

Implements: IPlatformManager.GetCryptoProvider(EncryptionSettingsBase)

Gets crypto stream initialized using given encryption settings.

C#
public Stream GetCryptoStream(EncryptionSettingsBase encryptionSettings, Stream baseStream, StreamOperationMode mode, ICryptoProvider cryptoProvider, CompressionSettings compressionSettings)
Parameters:encryptionSettingsEncryptionSettingsBase

Encryption settings.

baseStreamStream

Stream.

modeStreamOperationMode

Stream operation mode.

cryptoProviderICryptoProvider

Crypto provider.

compressionSettingsCompressionSettings

Compression settings.

Returns:

Stream

Crypto stream.

Exceptions:

NotSupportedException

Specified crypto algorithm is not supported.

Implements: IPlatformManager.GetCryptoStream(EncryptionSettingsBase, Stream, StreamOperationMode, ICryptoProvider, CompressionSettings)

Indicates whether specified encoding is supported for this platform.

C#
public bool IsEncodingSupported(Encoding encoding)
Parameters:encodingEncoding

Encoding.

Returns:

bool

true if encoding is allowed in the ZIP file.

Implements: IPlatformManager.IsEncodingSupported(Encoding)

Properties

Gets a platform-specific alternate character used to separate directory levels in a path string that reflects a hierarchical file system organization.

C#
public string AltDirectorySeparatorChar { get; }

Implements: IPlatformManager.AltDirectorySeparatorChar

Gets default encoding for this platform.

C#
public Encoding DefaultEncoding { get; }

Implements: IPlatformManager.DefaultEncoding

Gets a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization.

C#
public string DirectorySeparatorChar { get; }

Implements: IPlatformManager.DirectorySeparatorChar

Gets or sets type of the temporary stream. The default value is TemporaryStreamType.Memory.

C#
public TemporaryStreamType TemporaryStreamType { get; set; }