New to Telerik Document ProcessingStart a free 30-day trial

Supplies platform abstractions (file system temp storage, path separators, encodings, and cryptography) allowing the ZIP library to operate uniformly across environments.

Definition

Namespace:Telerik.Windows.Zip

Assembly:Telerik.Windows.Zip.dll

Syntax:

C#
public interface IPlatformManager

Derived Classes: DotNetPlatformManager

Methods

Creates a temporary stream used for intermediate buffering of compressed or encrypted data.

C#
Stream CreateTemporaryStream()
Returns:

Stream

Stream will be used for temporary operations.

Disposes and removes a previously created temporary stream, releasing underlying resources.

C#
void DeleteTemporaryStream(Stream stream)
Parameters:streamStream

Stream to delete.

Returns a crypto provider initialized with the specified encryption settings, ready to produce encryptor/decryptor transforms.

C#
ICryptoProvider GetCryptoProvider(EncryptionSettingsBase settings)
Parameters:settingsEncryptionSettingsBase

Encryption settings.

Returns:

ICryptoProvider

Crypto provider.

Exceptions:

NotSupportedException

Specified crypto algorithm is not supported.

Creates a crypto stream wrapping baseStream using the provided encryption and compression settings in the specified operation mode.

C#
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.

Determines whether the provided text encoding is supported by the current platform implementation.

C#
bool IsEncodingSupported(Encoding encoding)
Parameters:encodingEncodingReturns:

bool

Properties

Gets the alternate directory separator character (e.g. '/') used when normalizing archive entry paths.

C#
string AltDirectorySeparatorChar { get; }

Gets the default text encoding used for entry metadata when Unicode flags or overrides are absent.

C#
Encoding DefaultEncoding { get; }

Gets the primary directory separator character (e.g. '\') used when constructing platform-specific temporary paths.

C#
string DirectorySeparatorChar { get; }