Show / Hide Table of Contents

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.

Inheritance
object
EpubContentFile
EpubLocalContentFile
EpubLocalByteContentFile
Inherited Members
EpubLocalContentFile.FilePath
EpubLocalContentFile.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 EpubLocalByteContentFile : EpubLocalContentFile

Constructors

View Source

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

ArgumentNullException

The filePath parameter is null.

ArgumentNullException

The content parameter is null.

Properties

View Source

Content

Gets the content of the file.

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

ContentFileType

Gets the type of the content file which is always BYTE_ARRAY for local 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