com.groupdocs.merger.domain.result

Class DocumentInfo

    • Constructor Detail

      • DocumentInfo

        public DocumentInfo(FileType fileType,
                            IPageInfo[] pages,
                            long size)

        Initializes new instance of DocumentInfo class.

        Parameters:
        fileType - The type of the file.
        pages - The list of pages to view.
        size - The size of the file.
        Throws:
        NullPointerException - Thrown when fileType is null.
        NullPointerException - Thrown when pages is null.
    • Method Detail

      • getPageCount

        public final int getPageCount()

        The document pages count.

        Specified by:
        getPageCount in interface IDocumentInfo
      • getSize

        public final long getSize()

        Document size in bytes

        Specified by:
        getSize in interface IDocumentInfo
      • toString

        public String toString()

        Returns a string that represents the current object.

        Overrides:
        toString in class Object
        Returns:
        A string that represents the current object.