Class EpubContentFileRef
The base class for content file references.
Inherited Members
Namespace: VersOne.Epub
Assembly: VersOne.Epub.dll
Syntax
public abstract class EpubContentFileRef
Constructors
View SourceEpubContentFileRef(EpubContentFileRefMetadata, IEpubContentLoader)
Initializes a new instance of the EpubContentFileRef class with a specified metadata and a specified content loader.
Declaration
protected EpubContentFileRef(EpubContentFileRefMetadata metadata, IEpubContentLoader epubContentLoader)
Parameters
Type | Name | Description |
---|---|---|
EpubContentFileRefMetadata | metadata | Metadata of this content file reference. |
IEpubContentLoader | epubContentLoader | A reference to the EPUB content loader which provides methods to load the content of this file. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The |
ArgumentNullException | The |
Properties
View SourceContentFileType
Gets the type of the content file reference (text or byte array).
Declaration
public abstract EpubContentFileType ContentFileType { get; }
Property type: EpubContentFileType
View SourceContentLocation
Gets the location of the content file (local or remote).
Declaration
public abstract EpubContentLocation ContentLocation { get; }
Property type: EpubContentLocation
View SourceContentMimeType
Gets the MIME type of the content of the file.
Declaration
public string ContentMimeType { get; }
Property type: string
View SourceContentType
Gets the type of the content of the file (e.g. XHTML_1_1 or IMAGE_JPEG).
Declaration
public EpubContentType ContentType { get; }
Property type: EpubContentType
View SourceEpubContentLoader
Gets the reference to the EPUB content loader which provides methods to load the content of this file.
Declaration
protected IEpubContentLoader EpubContentLoader { get; }
Property type: IEpubContentLoader
View SourceKey
Gets the content file reference key as it is declared in the EPUB manifest (in the Href property). This is either a relative path of the content file within the EPUB archive (for local content file references) or an absolute URI of the content file outside of the EPUB archive (for remote content file references).
Declaration
public string Key { get; }
Property type: string
View SourceMetadata
Gets the metadata of this content file reference.
Declaration
protected EpubContentFileRefMetadata Metadata { get; }