com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class DocumentParser



  • public final class DocumentParser
    extends Object

    Provides the functionality of data extraction.

    • Field Detail

      • DEFAULT

        public static final DocumentParser DEFAULT

        A default instance of DocumentParser class.

    • Constructor Detail

      • DocumentParser

        public DocumentParser()

        Initializes a new instance of the DocumentParser class.

    • Method Detail

      • parseByTemplate

        public DocumentData parseByTemplate(String fileName,
                                   DocumentTemplate documentTemplate)

        Parses data from the document by a user-generated template.

        Parameters:
        fileName - The file name of the document.
        documentTemplate - The document template.
        Returns:
        An instance of DocumentData class.
      • parseByTemplate

        public DocumentData parseByTemplate(String fileName,
                                   DocumentTemplate documentTemplate,
                                   LoadOptions loadOptions)

        Parses data from the document by a user-generated template.

        Parameters:
        fileName - The file name of the document.
        documentTemplate - The document template.
        loadOptions - The options of loading the file.
        Returns:
        An instance of DocumentData class.
      • parseByTemplate

        public DocumentData parseByTemplate(InputStream stream,
                                   DocumentTemplate documentTemplate)

        Parses data from the document by a user-generated template.

        Parameters:
        stream - The stream of the document.
        documentTemplate - The document template.
        Returns:
        An instance of DocumentData class.
      • parseByTemplate

        public DocumentData parseByTemplate(InputStream stream,
                                   DocumentTemplate documentTemplate,
                                   LoadOptions loadOptions)

        Parses data from the document by a user-generated template.

        Parameters:
        stream - The stream of the document.
        documentTemplate - The document template.
        loadOptions - The options of loading the file.
        Returns:
        An instance of DocumentData class.