Class EpubLocalByteContentFile
A file within the EPUB archive with its content represented as a byte array. It is used for images and font files. Unlike EpubLocalByteContentFileRef, this class contains the whole content of the file.
Inherited Members
Namespace: VersOne.Epub
Assembly: VersOne.Epub.dll
Syntax
public class EpubLocalByteContentFile : EpubLocalContentFile
Constructors
View SourceEpubLocalByteContentFile(string, EpubContentType, string, string, byte[])
Initializes a new instance of the EpubLocalByteContentFile class.
Declaration
public EpubLocalByteContentFile(string key, EpubContentType contentType, string contentMimeType, string filePath, 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. |
string | filePath | The absolute path of the local content file in the EPUB archive. |
byte[] | content | The content of the file. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The |
ArgumentNullException | The |
ArgumentNullException | The |
Properties
View SourceContent
Gets the content of the file.
Declaration
public byte[] Content { get; }
Property type: byte[]
View SourceContentFileType
Gets the type of the content file which is always BYTE_ARRAY for local byte content files.
Declaration
public override EpubContentFileType ContentFileType { get; }