public final class DocumentParser extends Object
Provides the functionality of data extraction.
Modifier and Type | Field and Description |
---|---|
static DocumentParser |
DEFAULT
A default instance of
DocumentParser class. |
Constructor and Description |
---|
DocumentParser()
Initializes a new instance of the
DocumentParser class. |
Modifier and Type | Method and Description |
---|---|
DocumentData |
parseByTemplate(InputStream stream,
DocumentTemplate documentTemplate)
Parses data from the document by a user-generated template.
|
DocumentData |
parseByTemplate(InputStream stream,
DocumentTemplate documentTemplate,
LoadOptions loadOptions)
Parses data from the document by a user-generated template.
|
DocumentData |
parseByTemplate(String fileName,
DocumentTemplate documentTemplate)
Parses data from the document by a user-generated template.
|
DocumentData |
parseByTemplate(String fileName,
DocumentTemplate documentTemplate,
LoadOptions loadOptions)
Parses data from the document by a user-generated template.
|
public static final DocumentParser DEFAULT
A default instance of DocumentParser
class.
public DocumentParser()
Initializes a new instance of the DocumentParser
class.
public DocumentData parseByTemplate(String fileName, DocumentTemplate documentTemplate)
Parses data from the document by a user-generated template.
fileName
- The file name of the document.documentTemplate
- The document template.DocumentData
class.public DocumentData parseByTemplate(String fileName, DocumentTemplate documentTemplate, LoadOptions loadOptions)
Parses data from the document by a user-generated template.
fileName
- The file name of the document.documentTemplate
- The document template.loadOptions
- The options of loading the file.DocumentData
class.public DocumentData parseByTemplate(InputStream stream, DocumentTemplate documentTemplate)
Parses data from the document by a user-generated template.
stream
- The stream of the document.documentTemplate
- The document template.DocumentData
class.public DocumentData parseByTemplate(InputStream stream, DocumentTemplate documentTemplate, LoadOptions loadOptions)
Parses data from the document by a user-generated template.
stream
- The stream of the document.documentTemplate
- The document template.loadOptions
- The options of loading the file.DocumentData
class.Copyright © 2019. All rights reserved.