com.groupdocs.parser.legacy

Interfaces

Classes

Exceptions

com.groupdocs.parser.legacy

Class DocumentInfo



  • public final class DocumentInfo
    extends Object

    Provides the information of supported extractors for a document.

    • Constructor Summary

      Constructors 
      Constructor and Description
      DocumentInfo(boolean hasText, boolean hasFormattedText, boolean hasMetadata, boolean isContainer)
      Initializes a new instance of the DocumentInfo class.
    • Constructor Detail

      • DocumentInfo

        public DocumentInfo(boolean hasText,
                    boolean hasFormattedText,
                    boolean hasMetadata,
                    boolean isContainer)

        Initializes a new instance of the DocumentInfo class.

        Parameters:
        hasText - Value indicating whether a user can extract a plain text from a document.
        hasFormattedText - A value indicating whether a user can extract a formatted text from a document.
        hasMetadata - A value indicating whether a user can extract metadata from a document.
        isContainer - A value indicating whether a document contains other documents.
    • Method Detail

      • hasText

        public boolean hasText()

        Gets a value indicating whether a user can extract a plain text from a document.

        Returns:
        A boolean true if a user can extract a plain text from a document; otherwise, false.
      • hasFormattedText

        public boolean hasFormattedText()

        Gets a value indicating whether a user can extract a formatted text from a document.

        Returns:
        A boolean true if a user can extract a formatted text from a document; otherwise, false.
      • hasMetadata

        public boolean hasMetadata()

        Gets a value indicating whether a user can extract metadata from a document.

        Returns:
        A boolean true if a user can extract metadata from a document; otherwise, false.
      • isContainer

        public boolean isContainer()

        Gets a value indicating whether a document contains other documents.

        Returns:
        A boolean true if a document contains other documents; otherwise, false.