Contains the content for a document.
- Namespace
- Statiq
.Common - Interfaces
- Implementing Types
Syntax
public interface IContentProvider : ICacheCode
Properties
Name | Property Type | Summary |
---|---|---|
MediaType | string |
Gets the media type of the content.
|
Methods
Name | Return Value | Summary |
---|---|---|
CloneWithMediaType |
IContentProvider |
Clones the current content provider with a new media type.
|
GetLength |
long |
Gets the length of the content in bytes.
|
GetStream |
Stream |
Gets the content stream. The returned stream should be disposed after use.
|
GetTextReader |
TextReader |
Gets an appropriate
TextReader for the content. This is prefered
over reading the stream as text since it might be optimized for text-based use cases.
The returned TextReader should be disposed after use.
|