AnalyzeDocumentOptions Class
- java.
lang. Object - com.
azure. ai. documentintelligence. models. AnalyzeDocumentOptions
- com.
Implements
public final class AnalyzeDocumentOptions
implements JsonSerializable<AnalyzeDocumentOptions>
Document analysis parameters.
Constructor Summary
| Constructor | Description |
|---|---|
| AnalyzeDocumentOptions(byte[] bytesSource) |
Creates an instance of Analyze |
| AnalyzeDocumentOptions(BinaryData binaryData) |
Creates an instance of Analyze |
| AnalyzeDocumentOptions(String urlSource) |
Creates an instance of Analyze |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
AnalyzeDocumentOptions
public AnalyzeDocumentOptions(byte[] bytesSource)
Creates an instance of AnalyzeDocumentOptions with the specified bytes of the document.
Parameters:
AnalyzeDocumentOptions
public AnalyzeDocumentOptions(BinaryData binaryData)
Creates an instance of AnalyzeDocumentOptions with the specified BinaryData source.
Parameters:
AnalyzeDocumentOptions
public AnalyzeDocumentOptions(String urlSource)
Creates an instance of AnalyzeDocumentOptions with the specified URL source.
Parameters:
Method Details
fromJson
public static AnalyzeDocumentOptions fromJson(JsonReader jsonReader)
Reads an instance of AnalyzeDocumentOptions from the JsonReader.
Parameters:
Returns:
Throws:
getBytesSource
public byte[] getBytesSource()
Get the bytesSource property: Base64 encoding of the document to analyze. Either urlSource or base64Source must be specified.
Returns:
getDocumentAnalysisFeatures
public List<DocumentAnalysisFeature> getDocumentAnalysisFeatures()
Get the list of optional analysis features.
Returns:
getLocale
public String getLocale()
Get the locale hint for text recognition and document analysis. Value may contain only the language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").
Returns:
getOutput
public List<AnalyzeOutputFormat> getOutput()
Gets the list of output formats.
Returns:
getOutputContentFormat
public DocumentContentFormat getOutputContentFormat()
Gets the output content format.
Returns:
getPages
public List<String> getPages()
Get the custom page numbers for multipage documents(PDF/TIFF). Input the number of the pages you want to get the recognized result for.
For a range of pages, use a hyphen, ex - ["1-3"]. Separate each page or a page range with a comma, ex - ["1-3", 4].
Returns:
getQueryFields
public List<String> getQueryFields()
Gets the list of additional fields to include in the result.
Returns:
getStringIndexType
public StringIndexType getStringIndexType()
Gets the string index type.
Returns:
getUrlSource
public String getUrlSource()
Get the urlSource property: Document URL to analyze. Either urlSource or base64Source must be specified.
Returns:
setDocumentAnalysisFeatures
public AnalyzeDocumentOptions setDocumentAnalysisFeatures(DocumentAnalysisFeature[] documentAnalysisFeatures)
Set optional analysis features.
Parameters:
Returns:
AnalyzeDocumentOptions value.setDocumentAnalysisFeatures
public AnalyzeDocumentOptions setDocumentAnalysisFeatures(List<DocumentAnalysisFeature> documentAnalysisFeatures)
Set the list of optional analysis features.
Parameters:
Returns:
AnalyzeDocumentOptions value.setLocale
public AnalyzeDocumentOptions setLocale(String locale)
Set the locale value. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US.
Parameters:
Returns:
AnalyzeDocumentOptions value.setOutput
public AnalyzeDocumentOptions setOutput(List<AnalyzeOutputFormat> output)
Sets the list of output formats.
Parameters:
Returns:
AnalyzeDocumentOptions value.setOutputContentFormat
public AnalyzeDocumentOptions setOutputContentFormat(DocumentContentFormat outputContentFormat)
Sets the output content format.
Parameters:
Returns:
AnalyzeDocumentOptions value.setPages
public AnalyzeDocumentOptions setPages(List<String> pages)
Set the custom page numbers for multipage documents(PDF/TIFF). Input the number of the pages you want to get the recognized result for.
For a range of pages, use a hyphen, ex - ["1-3"]. Separate each page or a page range with a comma, ex - ["1-3", 4].
Parameters:
Returns:
AnalyzeDocumentOptions value.setQueryFields
public AnalyzeDocumentOptions setQueryFields(List<String> queryFields)
Sets the list of additional fields to include in the result.
Parameters:
Returns:
AnalyzeDocumentOptions value.setStringIndexType
public AnalyzeDocumentOptions setStringIndexType(StringIndexType stringIndexType)
Sets the string index type.
Parameters:
Returns:
AnalyzeDocumentOptions value.