FileContentStreamFactory Class

Summary

Provides content streams that are backed by a file in the file system. This trades performance (disk I/O is considerably slower than memory) for a reduced memory footprint.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Documents
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IContentStreamFactory"] click Interface0 "/api/Wyam.Common.Documents/IContentStreamFactory" Type["FileContentStreamFactory"] class Type type-node

Syntax

public class FileContentStreamFactory : IContentStreamFactory

Methods

Name Value Summary
GetStream(IExecutionContext, string) Stream
Gets a System.IO.Stream that can be used for document content. If content is not null, the stream is initialized with the specified content. The position should be set to the beginning of the stream when returned.
GitHub