public final class DocumentInfo extends Object
Provides the information of supported extractors for a document.
Constructor and Description |
---|
DocumentInfo(boolean hasText,
boolean hasFormattedText,
boolean hasMetadata,
boolean isContainer)
Initializes a new instance of the
DocumentInfo class. |
Modifier and Type | Method and Description |
---|---|
boolean |
hasFormattedText()
Gets a value indicating whether a user can extract a formatted text from a document.
|
boolean |
hasMetadata()
Gets a value indicating whether a user can extract metadata from a document.
|
boolean |
hasText()
Gets a value indicating whether a user can extract a plain text from a document.
|
boolean |
isContainer()
Gets a value indicating whether a document contains other documents.
|
public DocumentInfo(boolean hasText, boolean hasFormattedText, boolean hasMetadata, boolean isContainer)
Initializes a new instance of the DocumentInfo
class.
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.public boolean hasText()
Gets a value indicating whether a user can extract a plain text from a document.
public boolean hasFormattedText()
Gets a value indicating whether a user can extract a formatted text from a document.
public boolean hasMetadata()
Gets a value indicating whether a user can extract metadata from a document.
public boolean isContainer()
Gets a value indicating whether a document contains other documents.
Copyright © 2019. All rights reserved.