Table of Contents

Class ZipProviderLoader

Namespace
CMS.IO
Assembly
CMS.IO.dll

Zip provider loader class

public sealed class ZipProviderLoader : AbstractStorageProvider
Inheritance
object
ZipProviderLoader
Inherited Members
Extension Methods

Constructors

ZipProviderLoader(string, string, AbstractStorageProvider)

Constructor

public ZipProviderLoader(string zipFilePath, string mappedPath, AbstractStorageProvider parentProvider)

Parameters

zipFilePath string

Path to the zip file

mappedPath string

Mapped path

parentProvider AbstractStorageProvider

Parent storage provider

Properties

FilePath

Zip file path

public string FilePath { get; }

Property Value

string

Methods

CreateDirectoryProviderObject()

Creates new directory provider object

protected override AbstractDirectory CreateDirectoryProviderObject()

Returns

AbstractDirectory

Exceptions

NotImplementedException

Zip provider doesn't provide any IO access on it's own.

CreateFileProviderObject()

Creates new directory provider object

protected override AbstractFile CreateFileProviderObject()

Returns

AbstractFile

Exceptions

NotImplementedException

Zip provider doesn't provide any IO access on it's own.

Dispose()

Disposes the object

public void Dispose()

GetDirectoryInfo(string)

Returns new instance of directory info.

public override DirectoryInfo GetDirectoryInfo(string path)

Parameters

path string

Path

Returns

DirectoryInfo

Exceptions

NotImplementedException

Zip provider doesn't provide any IO access on it's own.

GetFileInfo(string)

Returns new instance of FileInfo object.

public override FileInfo GetFileInfo(string fileName)

Parameters

fileName string

File name

Returns

FileInfo

Exceptions

NotImplementedException

Zip provider doesn't provide any IO access on it's own.

GetFileStream(string, FileMode)

Returns new instance of file stream.

public override FileStream GetFileStream(string path, FileMode mode)

Parameters

path string

Path to file

mode FileMode

File mode

Returns

FileStream

Exceptions

NotImplementedException

Zip provider doesn't provide any IO access on it's own.

GetFileStream(string, FileMode, FileAccess)

Returns new instance of file stream.

public override FileStream GetFileStream(string path, FileMode mode, FileAccess access)

Parameters

path string

Path to file

mode FileMode

File mode

access FileAccess

File access

Returns

FileStream

Exceptions

NotImplementedException

Zip provider doesn't provide any IO access on it's own.

GetFileStream(string, FileMode, FileAccess, FileShare)

Returns new instance of file stream.

public override FileStream GetFileStream(string path, FileMode mode, FileAccess access, FileShare share)

Parameters

path string

Path to file

mode FileMode

File mode

access FileAccess

File access

share FileShare

Sharing permissions

Returns

FileStream

Exceptions

NotImplementedException

Zip provider doesn't provide any IO access on it's own.

GetFileStream(string, FileMode, FileAccess, FileShare, int)

Returns new instance of file stream.

public override FileStream GetFileStream(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize)

Parameters

path string

Path to file

mode FileMode

File mode

access FileAccess

File access

share FileShare

Sharing permissions

bufferSize int

Buffer size

Returns

FileStream

Exceptions

NotImplementedException

Zip provider doesn't provide any IO access on it's own.

GetInternalProvider(string)

Gets the storage provider based on the given path

protected override AbstractStorageProvider GetInternalProvider(string path)

Parameters

path string

Input path

Returns

AbstractStorageProvider