skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Interface IPlatformManager

Supplies platform abstractions (file system temp storage, path separators, encodings, and cryptography) allowing the ZIP library to operate uniformly across environments.

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.

Declaration
string AltDirectorySeparatorChar { get; }
Property Value
System.String

DefaultEncoding

Gets the default text encoding used for entry metadata when Unicode flags or overrides are absent.

Declaration
Encoding DefaultEncoding { get; }
Property Value
System.Text.Encoding

DirectorySeparatorChar

Gets the primary directory separator character (e.g. '\') used when constructing platform-specific temporary paths.

Declaration
string DirectorySeparatorChar { get; }
Property Value
System.String

Methods

CreateTemporaryStream()

Creates a temporary stream used for intermediate buffering of compressed or encrypted data.

Declaration
Stream CreateTemporaryStream()
Returns
System.IO.Stream

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
System.IO.Stream 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
EncryptionSettingsBase settings

Encryption settings.

Returns
ICryptoProvider

Crypto provider.

Exceptions
System.NotSupportedException

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
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)

Determines whether the provided text encoding is supported by the current platform implementation.

Declaration
bool IsEncodingSupported(Encoding encoding)
Parameters
System.Text.Encoding encoding

Returns
System.Boolean

Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.