InterfaceIPlatformManager
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
Properties
AltDirectorySeparatorChar
Gets the alternate directory separator character (e.g. '/') used when normalizing archive entry paths.
DefaultEncoding
Gets the default text encoding used for entry metadata when Unicode flags or overrides are absent.
DirectorySeparatorChar
Gets the primary directory separator character (e.g. '\') used when constructing platform-specific temporary paths.
Methods
CreateTemporaryStream()
Creates a temporary stream used for intermediate buffering of compressed or encrypted data.
Declaration
Stream CreateTemporaryStream()
Returns
Stream will be used for temporary operations.
DeleteTemporaryStream(Stream)
Disposes and removes a previously created temporary stream, releasing underlying resources.
Declaration
void DeleteTemporaryStream(Stream stream)
Parameters
stream
Stream to delete.
GetCryptoProvider(EncryptionSettingsBase)
Returns a crypto provider initialized with the specified encryption settings, ready to produce encryptor/decryptor transforms.
Declaration
ICryptoProvider GetCryptoProvider(EncryptionSettingsBase settings)
Parameters
settings
Encryption settings.
Returns
Crypto provider.
Exceptions
Specified crypto algorithm is not supported.
GetCryptoStream(EncryptionSettingsBase, Stream, StreamOperationMode, ICryptoProvider, CompressionSettings)
Creates a crypto stream wrapping baseStream using the provided encryption and compression settings in the specified operation mode.
Declaration
Stream GetCryptoStream(EncryptionSettingsBase encryptionSettings, Stream baseStream, StreamOperationMode mode, ICryptoProvider cryptoProvider, CompressionSettings compressionSettings)
Parameters
encryptionSettings
Encryption settings.
baseStream
Stream.
mode
Stream operation mode.
cryptoProvider
Crypto provider.
compressionSettings
Compression settings.
Returns
Crypto stream.
Exceptions
Specified crypto algorithm is not supported.
IsEncodingSupported(Encoding)
Determines whether the provided text encoding is supported by the current platform implementation.