Class EpubRemoteByteContentFile
A file located outside of the EPUB archive with its content represented as a byte array. It is used for images and font files. Unlike EpubRemoteByteContentFileRef, this class contains the whole content of the file.
Inherited Members
Namespace: VersOne.Epub
Assembly: VersOne.Epub.dll
Syntax
public class EpubRemoteByteContentFile : EpubRemoteContentFile
Constructors
View SourceEpubRemoteByteContentFile(string, EpubContentType, string, byte[]?)
Initializes a new instance of the EpubRemoteByteContentFile class.
Declaration
public EpubRemoteByteContentFile(string key, EpubContentType contentType, string contentMimeType, byte[]? content)
Parameters
Type | Name | Description |
---|---|---|
string | key | The content file key as it is declared in the EPUB manifest (in the Href property). |
EpubContentType | contentType | The type of the content of the file. |
string | contentMimeType | The MIME type of the content of the file. |
byte[] | content | The content of the file. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The |
ArgumentNullException | The |
Properties
View SourceContent
Gets the content of the file or null
if the content has not been downloaded.
Declaration
public byte[]? Content { get; }
Property type: byte[]
View SourceContentFileType
Gets the type of the content file which is always BYTE_ARRAY for remote byte content files.
Declaration
public override EpubContentFileType ContentFileType { get; }