EBookFormats

Contents
[ ]

Inheritance: java.lang.Object, com.groupdocs.editor.formats.abstraction.FormatFamilyBase, com.groupdocs.editor.formats.abstraction.DocumentFormatBase

public class EBookFormats extends DocumentFormatBase

Encapsulates all eBook formats. Includes the following file types: Mobi, Epub Learn more about Mobi format here, and about ePub format here.

Fields

Field Description
Mobi MOBI is the name given to the format developed for the MobiPocket Reader.
Epub Electronic Publication (IDPF ePub) format is an e-book file format that provides a standard digital publication format for publishers and consumers.
Azw3 AZW3, also known as Kindle Format 8 (KF8), is the modified version of the AZW ebook digital file format developed for Amazon Kindle devices.

Methods

Method Description
getAll() Gets an enumerable collection of all EBookFormats.
fromExtension(String extension) Retrieves an instance of the specified type EBookFormats that has the specified file extension.
fromString(String extension) Converts a string representing a file extension to a EBookFormats object.

Mobi

public static final EBookFormats Mobi

MOBI is the name given to the format developed for the MobiPocket Reader. Also called PRC, AZW. It is currently used by Amazon with a slightly different DRM scheme and called AZW. Learn more about this file format here .

Epub

public static final EBookFormats Epub

Electronic Publication (IDPF ePub) format is an e-book file format that provides a standard digital publication format for publishers and consumers. Learn more about this file format here .

Azw3

public static final EBookFormats Azw3

AZW3, also known as Kindle Format 8 (KF8), is the modified version of the AZW ebook digital file format developed for Amazon Kindle devices. The format is an enhancement to older AZW files. Learn more about this file format here .

getAll()

public static List<EBookFormats> getAll()

Gets an enumerable collection of all EBookFormats.

Value: An IEnumerable{EBookFormats} containing all instances of EBookFormats.

Returns: java.util.List<com.groupdocs.editor.formats.EBookFormats>

fromExtension(String extension)

public static EBookFormats fromExtension(String extension)

Retrieves an instance of the specified type EBookFormats that has the specified file extension.

Parameters:

Parameter Type Description
extension java.lang.String The file extension of the document format.

Returns: EBookFormats - An instance of the specified type EBookFormats with the specified file extension.

fromString(String extension)

public static EBookFormats fromString(String extension)

Converts a string representing a file extension to a EBookFormats object.

Parameters:

Parameter Type Description
extension java.lang.String The file extension to convert. If the extension contains multiple periods, the part after the last period is used.

Returns: EBookFormats - A EBookFormats object corresponding to the specified file extension.