IPlatformManager
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:
public interface IPlatformManager
Derived Classes:
Methods
Creates a temporary stream used for intermediate buffering of compressed or encrypted data.
Disposes and removes a previously created temporary stream, releasing underlying resources.
Returns a crypto provider initialized with the specified encryption settings, ready to produce encryptor/decryptor transforms.
ICryptoProvider GetCryptoProvider(EncryptionSettingsBase settings)
Encryption settings.
Returns:Crypto provider.
Exceptions:Specified crypto algorithm is not supported.
Creates a crypto stream wrapping baseStream using the provided encryption and compression settings in the specified operation mode.
Stream GetCryptoStream(EncryptionSettingsBase encryptionSettings, Stream baseStream, StreamOperationMode mode, ICryptoProvider cryptoProvider, CompressionSettings compressionSettings)
Encryption settings.
baseStreamStreamStream.
modeStreamOperationModeStream operation mode.
cryptoProviderICryptoProviderCrypto provider.
compressionSettingsCompressionSettingsCompression settings.
Returns:Crypto stream.
Exceptions:Specified crypto algorithm is not supported.
Properties
Gets the alternate directory separator character (e.g. '/') used when normalizing archive entry paths.
string AltDirectorySeparatorChar { get; }
Gets the default text encoding used for entry metadata when Unicode flags or overrides are absent.
Encoding DefaultEncoding { get; }
Gets the primary directory separator character (e.g. '\') used when constructing platform-specific temporary paths.
string DirectorySeparatorChar { get; }