Click or drag to resize
ZipStorageProvider Class
ZIP storage provider
Inheritance Hierarchy

Namespace: CMS.IO
Assembly: CMS.IO (in CMS.IO.dll) Version: 10.0.0
Syntax
C#
public class ZipStorageProvider : AbstractStorageProvider, 
	IDisposable

The ZipStorageProvider type exposes the following members.

Constructors
  NameDescription
Public methodZipStorageProvider
Constructor
Top
Fields
  NameDescription
Public fieldStatic memberZIP_END
Ending character for the zip archive within path
Public fieldStatic memberZIP_START
Starting character for the zip archive within path
Top
Properties
  NameDescription
Public propertyCacheData
If true, the loaded data is cached
Public propertyCacheDataLimit
Limit size for the caching of the file data (bytes)
Public propertyStatic memberCompressionBufferSize
Size of buffer used to un/compress packages
Public propertyCustomRootPath
Gets or sets Custom path where files should be stored.
(Inherited from AbstractStorageProvider.)
Public propertyCustomRootUrl
Specifies custom root URL for provider.
(Inherited from AbstractStorageProvider.)
Public propertyDirectoryProviderObject
Returns CMSDirectoryProvider object.
(Inherited from AbstractStorageProvider.)
Public propertyExternalStorageName
Returns name of external storage (if current instance running on external storage).
(Inherited from AbstractStorageProvider.)
Public propertyFilePath
Zip file path
Public propertyFileProviderObject
Returns AbstractFile object.
(Inherited from AbstractStorageProvider.)
Public propertyHasCustomRootPath
Returns whether provider has custom root path.
(Inherited from AbstractStorageProvider.)
Public propertyIsExternalStorage
Returns whether current instance is running on external storage.
(Inherited from AbstractStorageProvider.)
Public propertyIsSharedStorage
Returns whether current instance is running on shared storage.
(Inherited from AbstractStorageProvider.)
Protected propertyMappedPath
Mapped path
(Inherited from AbstractStorageProvider.)
Public propertyName
Provider name
(Overrides AbstractStorageProviderName.)
Protected propertyParentStorageProvider
Parent storage provider
(Inherited from AbstractStorageProvider.)
Protected propertyProviderAssembly
Custom Provider library assembly.
(Inherited from AbstractStorageProvider.)
Protected propertyProviderAssemblyName
Custom Provider library assembly.
(Inherited from AbstractStorageProvider.)
Public propertyPublicExternalFolderObject
Gets or sets whether external storage folder object (i.e. Container for WA blob storage) has public access or not.
(Inherited from AbstractStorageProvider.)
Public propertyRootDirectory
Root directory
Protected propertyStartingPath
Starting path that the provider will use as prefix in case it is used
(Inherited from AbstractStorageProvider.)
Public propertyZipFile
Zip file info object
Top
Methods
  NameDescription
Protected methodCreateDirectoryProviderObject
Creates new directory provider object
(Overrides AbstractStorageProviderCreateDirectoryProviderObject.)
Protected methodCreateFileProviderObject
Creates new directory provider object
(Overrides AbstractStorageProviderCreateFileProviderObject.)
Public methodDispose
Disposes the object and closes the streams if necessary
Public methodStatic memberDispose(String)
Disposes the storage provider for the given path
Public methodStatic memberDisposeAll
Disposes the zip storage providers
Public methodGetDirectoryInfo
Returns new instance of directory info.
(Overrides AbstractStorageProviderGetDirectoryInfo(String).)
Public methodGetFileData
Gets the particular file data
Public methodGetFileEntry
Gets the particular file data
Public methodGetFileInfo
Returns new instance of FileInfo object.
(Overrides AbstractStorageProviderGetFileInfo(String).)
Public methodGetFileStream(String)
Gets a file stream for the given file
Public methodGetFileStream(String, FileMode)
Returns new instance of file stream.
(Overrides AbstractStorageProviderGetFileStream(String, FileMode).)
Public methodGetFileStream(String, FileMode, FileAccess)
Returns new instance of file stream.
(Overrides AbstractStorageProviderGetFileStream(String, FileMode, FileAccess).)
Public methodGetFileStream(String, FileMode, FileAccess, FileShare)
Returns new instance of file stream.
(Overrides AbstractStorageProviderGetFileStream(String, FileMode, FileAccess, FileShare).)
Public methodGetFileStream(String, FileMode, FileAccess, FileShare, Int32)
Returns new instance of file stream.
(Overrides AbstractStorageProviderGetFileStream(String, FileMode, FileAccess, FileShare, Int32).)
Protected methodGetFullPath
Converts the external mapped path to the internal path of the provider
(Inherited from AbstractStorageProvider.)
Protected methodGetInternalProvider
Gets the storage provider based on the given path.
(Inherited from AbstractStorageProvider.)
Protected methodGetStorageProviderInternal
Gets the storage provider based on the given path.
(Inherited from AbstractStorageProvider.)
Public methodStatic memberGetZipFileName
Gets the zip file name with the container brackets
Public methodStatic memberIsZipFile
Returns true if the given file path is a zip file
Public methodStatic memberIsZipFolderPath
Gets the zip file path from the given zip folder path. Returns null if the path isn't a zip folder path
Protected methodLoadContents
Loads the contents of the zip file
Public methodMapStoragePath
Maps the given storage path to a specific provider
(Inherited from AbstractStorageProvider.)
Protected methodRemoveMappedProvider
Removes a mapped provider from the mapped collection
(Inherited from AbstractStorageProvider.)
Public methodUnMapStoragePath
Removes the mapping to a storage provider
(Inherited from AbstractStorageProvider.)
Top
See Also