Interface IPlatformManager
Interface which provides platform-specific operations.
Namespace: Telerik.Windows.Zip
Assembly: Telerik.Windows.Zip.dll
Syntax
public interface IPlatformManager
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
string AltDirectorySeparatorChar { get; }
Property Value
System.String
|
DefaultEncoding
Gets default encoding for this platform.
Declaration
Encoding DefaultEncoding { get; }
Property Value
System.Text.Encoding
|
DirectorySeparatorChar
Gets a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization.
Declaration
string DirectorySeparatorChar { get; }
Property Value
System.String
|
Methods
CreateTemporaryStream()
Creates temporary stream.
Declaration
Stream CreateTemporaryStream()
Returns
System.IO.Stream
Stream will be used for temporary operations. |
DeleteTemporaryStream(Stream)
Deletes temporary stream.
Declaration
void DeleteTemporaryStream(Stream stream)
Parameters
System.IO.Stream
stream
Stream to delete. |
GetCryptoProvider(EncryptionSettingsBase)
Gets crypto provider initialized using given encryption settings.
Declaration
ICryptoProvider GetCryptoProvider(EncryptionSettingsBase settings)
Parameters
EncryptionSettingsBase
settings
Encryption settings. |
Returns
ICryptoProvider
Crypto provider. |
Exceptions
System.NotSupportedException
Specified crypto algorithm is not supported. |
GetCryptoStream(EncryptionSettingsBase, Stream, StreamOperationMode, ICryptoProvider, CompressionSettings)
Gets crypto stream initialized using given encryption settings.
Declaration
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. |
Exceptions
System.NotSupportedException
Specified crypto algorithm is not supported. |
IsEncodingSupported(Encoding)
Indicates whether specified encoding is supported for this platform.
Declaration
bool IsEncodingSupported(Encoding encoding)
Parameters
System.Text.Encoding
encoding
|
Returns
System.Boolean
|