com.groupdocs.editor.formats

Class EBookFormats

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  EBookFormats.AllEnumerable
      Implements IEnumerable generic interface, that enables a 'foreach' possibility for the EBookFormats type
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static EBookFormats.AllEnumerable All
      Returns an internal class, that provides enumerable possibilities over all existing EBook formats
      static EBookFormats Epub
      Electronic Publication (ePub) format is an e-book file format that provide a standard digital publication format for publishers and consumers.
      static EBookFormats Mobi
      MOBI is the name given to the format developed for the MobiPocket Reader.
    • Field Detail

      • All

        public static final EBookFormats.AllEnumerable All

        Returns an internal class, that provides enumerable possibilities over all existing EBook formats

      • Epub

        public static final EBookFormats Epub

        Electronic Publication (ePub) format is an e-book file format that provide a standard digital publication format for publishers and consumers. Learn more about this file format <a href="https://docs.fileformat.com/ebook/epub/">here</a>.

      • Mobi

        public static final EBookFormats Mobi

        MOBI is the name given to the format developed for the MobiPocket Reader. It is currently used by Amazon with a slightly different DRM scheme and called AZW. Learn more about this file format <a href="https://docs.fileformat.com/ebook/mobi/">here</a>.

    • Method Detail

      • equals

        public final boolean equals(EBookFormats other)

        Determines whether this instance is equal to the other specified EBookFormats instance

        Parameters:
        other - Other EBookFormats instance, that should be checked on equality with this
        Returns:
        True if are equal, false if are unequal
      • equals

        public final boolean equals(IDocumentFormat other)

        Determines whether this instance is equal to the other specified IDocumentFormat instance

        Parameters:
        other - Other IDocumentFormat instance. If it is not a EBookFormats, method will return 'false'
        Returns:
        True if are equal, false if are unequal
      • equals

        public boolean equals(Object obj)

        Determines whether this instance is equal to the other specified object, that is presumably of boxed EBookFormats

        Overrides:
        equals in class Object
        Parameters:
        obj - Other boxed EBookFormats instance
        Returns:
        True if are equal, false if are unequal
      • fromExtension

        public static EBookFormats fromExtension(String extension)

        Returns instance of EBookFormats structure, associated to specified filename extension, or throws an exception, if extension cannot be properly parsed

        Parameters:
        extension - Filename extension of any supportable EBook format, with or without leading dot character, case-independent. Cannot be NULL or empty, should be valid.
        Returns:
        Instance of EBookFormats structure on success or thrown exception on failure
      • getExtension

        public final String getExtension()

        Returns an extension (without leading dot character) of this EBook format in lower case

        Specified by:
        getExtension in interface IDocumentFormat
        Returns:
      • getName

        public final String getName()

        Returns a formal full name of this eBook format

        Specified by:
        getName in interface IDocumentFormat
        Returns:
      • hashCode

        public int hashCode()

        Returns a hash-code, that is immutable for this instance

        Overrides:
        hashCode in class Object
        Returns:
        Signed 4-byte integer
      • op_Equality

        public static boolean op_Equality(EBookFormats first,
                          EBookFormats second)

        Checks two given EBookFormats instances on equality

        Parameters:
        first - First EBookFormats instance to check
        second - Second EBookFormats instance to check
        Returns:
        True if are equal, false if are unequal
      • op_Inequality

        public static boolean op_Inequality(EBookFormats first,
                            EBookFormats second)

        Checks two given EBookFormats instances on inequality

        Parameters:
        first - First EBookFormats instance to check
        second - Second EBookFormats instance to check
        Returns:
        True if are not equal, false if are equal
      • toString

        public String toString()

        Returns a format name of this format

        Overrides:
        toString in class Object
        Returns:
        A String that represents this instance.