Show / Hide Table of Contents

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.

Inheritance
object
EpubContentFile
EpubRemoteContentFile
EpubRemoteByteContentFile
Inherited Members
EpubRemoteContentFile.Url
EpubRemoteContentFile.ContentLocation
EpubContentFile.Key
EpubContentFile.ContentType
EpubContentFile.ContentMimeType
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VersOne.Epub
Assembly: VersOne.Epub.dll
Syntax
public class EpubRemoteByteContentFile : EpubRemoteContentFile

Constructors

View Source

EpubRemoteByteContentFile(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 contentMimeType parameter is null.

ArgumentNullException

The content parameter is null.

Properties

View Source

Content

Gets the content of the file or null if the content has not been downloaded.

Declaration
public byte[]? Content { get; }
Property type: byte[]
View Source

ContentFileType

Gets the type of the content file which is always BYTE_ARRAY for remote byte content files.

Declaration
public override EpubContentFileType ContentFileType { get; }
Property type: EpubContentFileType
Overrides
EpubContentFile.ContentFileType
  • View Source
In this article
Back to top Generated by DocFX