Class OnlineProcessingConfig.Builder
java.lang.Object
com.regula.documentreader.api.params.OnlineProcessingConfig.Builder
- Enclosing class:
OnlineProcessingConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
setImageCompressionQuality
(float imageCompressionQuality) Image quality setting affects query execution time.setImageFormat
(int imageFormat) Set images format.setMode
(int mode) Set online processing modesetNetworkInterceptorListener
(NetworkInterceptorListener networkInterceptorListener) Set listener to intercept request to the servicesetProcessParams
(ProcessParam processParam) set up processing paramsSet service url
-
Constructor Details
-
Builder
public Builder(int mode) New OnlineProcessingConfiguration.Builder instance- Parameters:
mode
-OnlineMode.OnlineModeValues
-
Builder
New OnlineProcessingConfiguration.Builder instance- Parameters:
mode
-OnlineMode.OnlineModeValues
scenario
-Scenario.Scenarios
-
-
Method Details
-
setUrl
Set service url- Parameters:
url
-OnlineMode.OnlineModeValues
-
setMode
Set online processing mode- Parameters:
mode
-OnlineMode.OnlineModeValues
-
setImageFormat
Set images format. DefaultImageFormat.JPG
- Parameters:
imageFormat
-ImageFormat.ImageFormatValues
-
setImageCompressionQuality
Image quality setting affects query execution time. Default value is 0.8- Parameters:
imageCompressionQuality
- range from 0 to 1. 0 meaning compress for small size, 1 meaning compress for max quality.ImageFormat.PNG
format, will ignore the quality setting
-
setNetworkInterceptorListener
public OnlineProcessingConfig.Builder setNetworkInterceptorListener(NetworkInterceptorListener networkInterceptorListener) Set listener to intercept request to the service- Parameters:
networkInterceptorListener
- instance of the NetworkInterceptorListener interface
-
setProcessParams
set up processing params- Parameters:
processParam
- session configurations
-
build
- Returns:
- a new OnlineProcessingConfiguration
-