Show / Hide Table of Contents

Class EpubReader

The main entry point of the EpubReader library. The methods in this class let the consumer to open/read EPUB books from a file or a Stream.

Inheritance
object
EpubReader
Inherited Members
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 static class EpubReader

Methods

View Source

OpenBook(Stream, EpubReaderOptions?)

Opens the book synchronously without reading its content. The object returned by this method holds a handle to the EPUB file.

Declaration
public static EpubBookRef OpenBook(Stream stream, EpubReaderOptions? epubReaderOptions)
Parameters
Type Name Description
Stream stream

Seekable stream containing the EPUB file.

EpubReaderOptions epubReaderOptions

Various options to configure the behavior of the EPUB reader.

Returns
Type Description
EpubBookRef

EPUB book reference. This object holds a handle to the EPUB file.

View Source

OpenBook(Stream, EpubReaderOptionsPreset)

Opens the book synchronously without reading its content. The object returned by this method holds a handle to the EPUB file.

Declaration
public static EpubBookRef OpenBook(Stream stream, EpubReaderOptionsPreset epubReaderOptionsPreset = EpubReaderOptionsPreset.RELAXED)
Parameters
Type Name Description
Stream stream

Seekable stream containing the EPUB file.

EpubReaderOptionsPreset epubReaderOptionsPreset

A preset to configure the behavior of the EPUB reader. Default value is EpubReaderOptionsPreset.RELAXED.

Returns
Type Description
EpubBookRef

EPUB book reference. This object holds a handle to the EPUB file.

View Source

OpenBook(string, EpubReaderOptions?)

Opens the book synchronously without reading its content. The object returned by this method holds a handle to the EPUB file.

Declaration
public static EpubBookRef OpenBook(string filePath, EpubReaderOptions? epubReaderOptions)
Parameters
Type Name Description
string filePath

Path to the EPUB file.

EpubReaderOptions epubReaderOptions

Various options to configure the behavior of the EPUB reader.

Returns
Type Description
EpubBookRef

EPUB book reference. This object holds a handle to the EPUB file.

View Source

OpenBook(string, EpubReaderOptionsPreset)

Opens the book synchronously without reading its content. The object returned by this method holds a handle to the EPUB file.

Declaration
public static EpubBookRef OpenBook(string filePath, EpubReaderOptionsPreset epubReaderOptionsPreset = EpubReaderOptionsPreset.RELAXED)
Parameters
Type Name Description
string filePath

Path to the EPUB file.

EpubReaderOptionsPreset epubReaderOptionsPreset

A preset to configure the behavior of the EPUB reader. Default value is EpubReaderOptionsPreset.RELAXED.

Returns
Type Description
EpubBookRef

EPUB book reference. This object holds a handle to the EPUB file.

View Source

OpenBookAsync(Stream, EpubReaderOptions?)

Opens the book asynchronously without reading its content. The object returned by this method holds a handle to the EPUB file.

Declaration
public static Task<EpubBookRef> OpenBookAsync(Stream stream, EpubReaderOptions? epubReaderOptions)
Parameters
Type Name Description
Stream stream

Seekable stream containing the EPUB file.

EpubReaderOptions epubReaderOptions

Various options to configure the behavior of the EPUB reader.

Returns
Type Description
Task<EpubBookRef>

EPUB book reference. This object holds a handle to the EPUB file.

View Source

OpenBookAsync(Stream, EpubReaderOptionsPreset)

Opens the book asynchronously without reading its content. The object returned by this method holds a handle to the EPUB file.

Declaration
public static Task<EpubBookRef> OpenBookAsync(Stream stream, EpubReaderOptionsPreset epubReaderOptionsPreset = EpubReaderOptionsPreset.RELAXED)
Parameters
Type Name Description
Stream stream

Seekable stream containing the EPUB file.

EpubReaderOptionsPreset epubReaderOptionsPreset

A preset to configure the behavior of the EPUB reader. Default value is EpubReaderOptionsPreset.RELAXED.

Returns
Type Description
Task<EpubBookRef>

EPUB book reference. This object holds a handle to the EPUB file.

View Source

OpenBookAsync(string, EpubReaderOptions?)

Opens the book asynchronously without reading its content. The object returned by this method holds a handle to the EPUB file.

Declaration
public static Task<EpubBookRef> OpenBookAsync(string filePath, EpubReaderOptions? epubReaderOptions)
Parameters
Type Name Description
string filePath

Path to the EPUB file.

EpubReaderOptions epubReaderOptions

Various options to configure the behavior of the EPUB reader.

Returns
Type Description
Task<EpubBookRef>

EPUB book reference. This object holds a handle to the EPUB file.

View Source

OpenBookAsync(string, EpubReaderOptionsPreset)

Opens the book asynchronously without reading its content. The object returned by this method holds a handle to the EPUB file.

Declaration
public static Task<EpubBookRef> OpenBookAsync(string filePath, EpubReaderOptionsPreset epubReaderOptionsPreset = EpubReaderOptionsPreset.RELAXED)
Parameters
Type Name Description
string filePath

Path to the EPUB file.

EpubReaderOptionsPreset epubReaderOptionsPreset

A preset to configure the behavior of the EPUB reader. Default value is EpubReaderOptionsPreset.RELAXED.

Returns
Type Description
Task<EpubBookRef>

EPUB book reference. This object holds a handle to the EPUB file.

View Source

ReadBook(Stream, EpubReaderOptions?)

Opens the book synchronously and reads all of its content into the memory. The object returned by this method does not retain a handle to the EPUB file.

Declaration
public static EpubBook ReadBook(Stream stream, EpubReaderOptions? epubReaderOptions)
Parameters
Type Name Description
Stream stream

Seekable stream containing the EPUB file.

EpubReaderOptions epubReaderOptions

Various options to configure the behavior of the EPUB reader.

Returns
Type Description
EpubBook

EPUB book with all its content. This object does not retain a handle to the EPUB file.

View Source

ReadBook(Stream, EpubReaderOptionsPreset)

Opens the book synchronously and reads all of its content into the memory. The object returned by this method does not retain a handle to the EPUB file.

Declaration
public static EpubBook ReadBook(Stream stream, EpubReaderOptionsPreset epubReaderOptionsPreset = EpubReaderOptionsPreset.RELAXED)
Parameters
Type Name Description
Stream stream

Seekable stream containing the EPUB file.

EpubReaderOptionsPreset epubReaderOptionsPreset

A preset to configure the behavior of the EPUB reader. Default value is EpubReaderOptionsPreset.RELAXED.

Returns
Type Description
EpubBook

EPUB book with all its content. This object does not retain a handle to the EPUB file.

View Source

ReadBook(string, EpubReaderOptions?)

Opens the book synchronously and reads all of its content into the memory. The object returned by this method does not retain a handle to the EPUB file.

Declaration
public static EpubBook ReadBook(string filePath, EpubReaderOptions? epubReaderOptions)
Parameters
Type Name Description
string filePath

Path to the EPUB file.

EpubReaderOptions epubReaderOptions

Various options to configure the behavior of the EPUB reader.

Returns
Type Description
EpubBook

EPUB book with all its content. This object does not retain a handle to the EPUB file.

View Source

ReadBook(string, EpubReaderOptionsPreset)

Opens the book synchronously and reads all of its content into the memory. The object returned by this method does not retain a handle to the EPUB file.

Declaration
public static EpubBook ReadBook(string filePath, EpubReaderOptionsPreset epubReaderOptionsPreset = EpubReaderOptionsPreset.RELAXED)
Parameters
Type Name Description
string filePath

Path to the EPUB file.

EpubReaderOptionsPreset epubReaderOptionsPreset

A preset to configure the behavior of the EPUB reader. Default value is EpubReaderOptionsPreset.RELAXED.

Returns
Type Description
EpubBook

EPUB book with all its content. This object does not retain a handle to the EPUB file.

View Source

ReadBookAsync(Stream, EpubReaderOptions?)

Opens the book asynchronously and reads all of its content into the memory. The object returned by this method does not retain a handle to the EPUB file.

Declaration
public static Task<EpubBook> ReadBookAsync(Stream stream, EpubReaderOptions? epubReaderOptions)
Parameters
Type Name Description
Stream stream

Seekable stream containing the EPUB file.

EpubReaderOptions epubReaderOptions

Various options to configure the behavior of the EPUB reader.

Returns
Type Description
Task<EpubBook>

EPUB book with all its content. This object does not retain a handle to the EPUB file.

View Source

ReadBookAsync(Stream, EpubReaderOptionsPreset)

Opens the book asynchronously and reads all of its content into the memory. The object returned by this method does not retain a handle to the EPUB file.

Declaration
public static Task<EpubBook> ReadBookAsync(Stream stream, EpubReaderOptionsPreset epubReaderOptionsPreset = EpubReaderOptionsPreset.RELAXED)
Parameters
Type Name Description
Stream stream

Seekable stream containing the EPUB file.

EpubReaderOptionsPreset epubReaderOptionsPreset

A preset to configure the behavior of the EPUB reader. Default value is EpubReaderOptionsPreset.RELAXED.

Returns
Type Description
Task<EpubBook>

EPUB book with all its content. This object does not retain a handle to the EPUB file.

View Source

ReadBookAsync(string, EpubReaderOptions?)

Opens the book asynchronously and reads all of its content into the memory. The object returned by this method does not retain a handle to the EPUB file.

Declaration
public static Task<EpubBook> ReadBookAsync(string filePath, EpubReaderOptions? epubReaderOptions)
Parameters
Type Name Description
string filePath

Path to the EPUB file.

EpubReaderOptions epubReaderOptions

Various options to configure the behavior of the EPUB reader.

Returns
Type Description
Task<EpubBook>

EPUB book with all its content. This object does not retain a handle to the EPUB file.

View Source

ReadBookAsync(string, EpubReaderOptionsPreset)

Opens the book asynchronously and reads all of its content into the memory. The object returned by this method does not retain a handle to the EPUB file.

Declaration
public static Task<EpubBook> ReadBookAsync(string filePath, EpubReaderOptionsPreset epubReaderOptionsPreset = EpubReaderOptionsPreset.RELAXED)
Parameters
Type Name Description
string filePath

Path to the EPUB file.

EpubReaderOptionsPreset epubReaderOptionsPreset

A preset to configure the behavior of the EPUB reader. Default value is EpubReaderOptionsPreset.RELAXED.

Returns
Type Description
Task<EpubBook>

EPUB book with all its content. This object does not retain a handle to the EPUB file.

  • View Source
In this article
Back to top Generated by DocFX