ParserSettings

Inheritance: java.lang.Object

public class ParserSettings

Provides the settings which are used to customize data extraction.

Learn more:

Constructors

Constructor Description
ParserSettings(ILogger logger) Initializes a new instance of the ParserSettings class with the logger.
ParserSettings(OcrConnectorBase ocrConnector) Initializes a new instance of the ParserSettings class with the OCR Connector.
ParserSettings(ExternalResourceHandler externalResourceHandler) Initializes a new instance of the ParserSettings class with the External Resource Handler.
ParserSettings(ILogger logger, OcrConnectorBase ocrConnector) Initializes a new instance of the ParserSettings class with logger and OCR Connector.
ParserSettings(ILogger logger, OcrConnectorBase ocrConnector, ExternalResourceHandler externalResourceHandler) Initializes a new instance of the ParserSettings class.

Methods

Method Description
getLogger() Gets the logger which is used for logging events and errors during data extraction.
getOcrConnector() Gets the OCR Connector which is used to provide OCR functionality.
getExternalResourceHandler() Gets the handler for external resources.

ParserSettings(ILogger logger)

public ParserSettings(ILogger logger)

Initializes a new instance of the ParserSettings class with the logger.

Parameters:

Parameter Type Description
logger ILogger An instance of class that implements ILogger interface.

ParserSettings(OcrConnectorBase ocrConnector)

public ParserSettings(OcrConnectorBase ocrConnector)

Initializes a new instance of the ParserSettings class with the OCR Connector.

Parameters:

Parameter Type Description
ocrConnector OcrConnectorBase An instance of class that inherits OcrConnectorBase class to provide OCR functionality.

ParserSettings(ExternalResourceHandler externalResourceHandler)

public ParserSettings(ExternalResourceHandler externalResourceHandler)

Initializes a new instance of the ParserSettings class with the External Resource Handler.

Parameters:

Parameter Type Description
externalResourceHandler ExternalResourceHandler An instance of class that inherits OcrConnectorBase class to provide OCR functionality.

ParserSettings(ILogger logger, OcrConnectorBase ocrConnector)

public ParserSettings(ILogger logger, OcrConnectorBase ocrConnector)

Initializes a new instance of the ParserSettings class with logger and OCR Connector.

Parameters:

Parameter Type Description
logger ILogger An instance of class that implements ILogger interface.
ocrConnector OcrConnectorBase An instance of class that inherits OcrConnectorBase class to provide OCR functionality.

ParserSettings(ILogger logger, OcrConnectorBase ocrConnector, ExternalResourceHandler externalResourceHandler)

public ParserSettings(ILogger logger, OcrConnectorBase ocrConnector, ExternalResourceHandler externalResourceHandler)

Initializes a new instance of the ParserSettings class.

Parameters:

Parameter Type Description
logger ILogger An instance of class that implements ILogger interface.
ocrConnector OcrConnectorBase An instance of class that inherits OcrConnectorBase class to provide OCR functionality.
externalResourceHandler ExternalResourceHandler An instance of class that inherits ExternalResourceHandler class to provide the control of external resource loading.

getLogger()

public ILogger getLogger()

Gets the logger which is used for logging events and errors during data extraction.

Returns: ILogger - An instance of class that implements ILogger interface.

getOcrConnector()

public OcrConnectorBase getOcrConnector()

Gets the OCR Connector which is used to provide OCR functionality.

Returns: OcrConnectorBase - An instance of class that inherits OcrConnectorBase class to provide OCR functionality.

getExternalResourceHandler()

public ExternalResourceHandler getExternalResourceHandler()

Gets the handler for external resources.

Returns: ExternalResourceHandler - An instance of class that inherits ExternalResourceHandler class to provide the control of external resource loading.