OcrEventHandler
Leave feedback
On this page
Inheritance: java.lang.Object
public class OcrEventHandler
Provides a handler for OCR events.
| Constructor | Description |
|---|---|
| OcrEventHandler() | Initializes a new instance of the OcrEventHandler class. |
| Method | Description |
|---|---|
| getWarnings() | Gets a list of warning messages. |
| hasWarnings() | Gets the value that indicates whether the list of warnings isn’t empty. |
| getWarnings(int pageIndex) | Returns a list of warning messages for the page with pageIndex . |
| onWarnings(int pageIndex, Iterable |
Sets warning messages for the page. |
public OcrEventHandler()
Initializes a new instance of the OcrEventHandler class.
public List<String> getWarnings()
Gets a list of warning messages.
Returns: java.util.List<java.lang.String> - A list of warning messages for all pages.
public boolean hasWarnings()
Gets the value that indicates whether the list of warnings isn’t empty.
Returns: boolean - true if the list of warnings isn’t empty; otherwise, false .
public List<String> getWarnings(int pageIndex)
Returns a list of warning messages for the page with pageIndex .
Parameters:
| Parameter | Type | Description |
|---|---|---|
| pageIndex | int | The zero-based page index. |
Returns: java.util.List<java.lang.String> - A list of warning messages for the page; empty list if no warning messages for the page.
public void onWarnings(int pageIndex, Iterable<String> warnings)
Sets warning messages for the page.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| pageIndex | int | The zero-based page index. |
| warnings | java.lang.Iterable<java.lang.String> | The list of warning messages for the page. |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.