Class DotNetPlatformManager
Platform manager which can be used with full version of the .NET Framework.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Zip.Extensions
Assembly: Telerik.Windows.Zip.Extensions.dll
Syntax
public class DotNetPlatformManager : IPlatformManager
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
System.String
|
Implements
DefaultEncoding
Gets default encoding for this platform.
Declaration
public Encoding DefaultEncoding { get; }
Property Value
System.Text.Encoding
|
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
System.String
|
Implements
TemporaryStreamType
Gets or sets type of the temporary stream. The default value is TemporaryStreamType.Memory.
Declaration
public TemporaryStreamType TemporaryStreamType { get; set; }
Property Value
TemporaryStreamType
|
Methods
CreateTemporaryStream()
Creates temporary stream.
Declaration
public Stream CreateTemporaryStream()
Returns
System.IO.Stream
Stream will be used for temporary operations. |
Implements
DeleteTemporaryStream(Stream)
Deletes temporary stream.
Declaration
public void DeleteTemporaryStream(Stream stream)
Parameters
System.IO.Stream
stream
Stream to delete. |
Implements
GetCryptoProvider(EncryptionSettingsBase)
Gets crypto provider initialized using given encryption settings.
Declaration
public ICryptoProvider GetCryptoProvider(EncryptionSettingsBase settings)
Parameters
EncryptionSettingsBase
settings
Encryption settings. |
Returns
ICryptoProvider
Crypto provider. |
Implements
Exceptions
System.NotSupportedException
Specified crypto algorithm is not supported. |
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
EncryptionSettingsBase
encryptionSettings
Encryption settings. |
System.IO.Stream
baseStream
Stream. |
StreamOperationMode
mode
Stream operation mode. |
ICryptoProvider
cryptoProvider
Crypto provider. |
CompressionSettings
compressionSettings
Compression settings. |
Returns
System.IO.Stream
Crypto stream. |
Implements
Exceptions
System.NotSupportedException
Specified crypto algorithm is not supported. |
IsEncodingSupported(Encoding)
Indicates whether specified encoding is supported for this platform.
Declaration
public bool IsEncodingSupported(Encoding encoding)
Parameters
System.Text.Encoding
encoding
Encoding. |
Returns
System.Boolean
true if encoding is allowed in the ZIP file. |