ClassDotNetPlatformManager
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:
public class DotNetPlatformManager : IPlatformManager
Inheritance: objectDotNetPlatformManager
Implements:
Constructors
DotNetPlatformManager()
Initializes a new instance of the DotNetPlatformManager class.
Declaration
public DotNetPlatformManager()
Properties
AltDirectorySeparatorChar
Gets a platform-specific alternate character used to separate directory levels in a path string that reflects a hierarchical file system organization.
Declaration
public string AltDirectorySeparatorChar { get; }
Property Value
Implements
DefaultEncoding
Gets default encoding for this platform.
Declaration
public Encoding DefaultEncoding { get; }
Property Value
Implements
DirectorySeparatorChar
Gets a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization.
Declaration
public string DirectorySeparatorChar { get; }
Property Value
Implements
TemporaryStreamType
Gets or sets type of the temporary stream. The default value is TemporaryStreamType.Memory.
Declaration
public TemporaryStreamType TemporaryStreamType { get; set; }
Property Value
Methods
CreateTemporaryStream()
Creates temporary stream.
Declaration
[SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")]
public Stream CreateTemporaryStream()
Returns
Stream will be used for temporary operations.
Implements
DeleteTemporaryStream(Stream)
Deletes temporary stream.
Declaration
public void DeleteTemporaryStream(Stream stream)
Parameters
stream
Stream to delete.
Implements
GetCryptoProvider(EncryptionSettingsBase)
Gets crypto provider initialized using given encryption settings.
Declaration
public ICryptoProvider GetCryptoProvider(EncryptionSettingsBase settings)
Parameters
settings
Encryption settings.
Returns
Crypto provider.
Exceptions
Specified crypto algorithm is not supported.
Implements
GetCryptoStream(EncryptionSettingsBase, Stream, StreamOperationMode, ICryptoProvider, CompressionSettings)
Gets crypto stream initialized using given encryption settings.
Declaration
public 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.
Implements
IsEncodingSupported(Encoding)
Indicates whether specified encoding is supported for this platform.