IDocumentStorage Interface

Interface to abstract document reading for Windows/Linux/Mac file systems and cloud blob storages such as AWS S3, Azure Blob storage, etc.

Definition

Namespace: OpenDiscoverSDK.Interfaces.Platform.IO
Assembly: OpenDiscoverSDK.Interfaces (in OpenDiscoverSDK.Interfaces.dll) Version: 2026.2.6.0 (2026.02.06)
C#
public interface IDocumentStorage

Methods

CreateDirectory Creates a directory
DirectoryExists Returns true if directory path exists; false otherwise.
FileExists Returns true if document path exists; false otherwise.
GetDocumentStorageInfo Gets document system and or metadata information on the document.
OpenRead Returns a stream to read the document.
OpenWrite Opens and returns a stream to write to (or create if does not exist) the document.
ReadAllBytes Returns a byte array of all document bytes.
WriteAllBytes Writes (or over-writes if already exists) all 'bytes' argument to the document 'path' argument.
WriteAllText Writes (or over-writes if already exists) all 'text' argument to the document 'path' argument with encoding given by 'encoding' argument.

See Also