com.groupdocs.editor.metadata

Class MobiDocumentInfo

    • Method Detail

      • equals

        public final boolean equals(MobiDocumentInfo other)

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

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

        public final EBookFormats getFormat()

        Returns a format of this Mobi document — always is Mobi

        Specified by:
        getFormat in interface IDocumentInfo
        Returns:
      • getPageCount

        public final int getPageCount()

        Returns number of pages. Mobi documents usually have no fixed pages and thus page count, so this number is calculated from standard page size set to A4 in portrait orientation.

        Specified by:
        getPageCount in interface IDocumentInfo
        Returns:
      • getSize

        public final long getSize()

        Returns size in bytes of this Mobi document

        Specified by:
        getSize in interface IDocumentInfo
        Returns:
      • isEncrypted

        public final boolean isEncrypted()

        Because Mobi documents cannot be encrypted with password, this property always returns 'false'

        Specified by:
        isEncrypted in interface IDocumentInfo
        Returns: