2121import abbyy .cloudsdk .v2 .client .models .enums .TaskStatus ;
2222import abbyy .cloudsdk .v2 .client .models .requestparams .*;
2323
24- import java .io .FileInputStream ;
24+ import java .io .InputStream ;
2525import java .util .UUID ;
2626import java .util .concurrent .CompletableFuture ;
2727
@@ -44,27 +44,27 @@ public interface IOcrClient {
4444 * @param waitTaskFinished Indicates whether to wait until task is finished.
4545 * @return {@link TaskInfo}
4646 */
47- CompletableFuture <TaskInfo > processImageAsync (ImageProcessingParams parameters , FileInputStream fileStream , String fileName ,
47+ CompletableFuture <TaskInfo > processImageAsync (ImageProcessingParams parameters , InputStream fileStream , String fileName ,
4848 boolean waitTaskFinished );
4949
5050 /**
5151 * The method adds the image to the existing task or creates a new task for the image. This task is not passed for processing until
5252 * the {@link #processDocumentAsync(DocumentProcessingParams, boolean)} or
53- * {@link #processFieldsAsync(FieldsProcessingParams, FileInputStream , String, boolean)} method is called for it.
53+ * {@link #processFieldsAsync(FieldsProcessingParams, InputStream , String, boolean)} method is called for it.
5454 * Several images can be uploaded to one task
5555 * @param parameters Image submitting parameters
5656 * @param fileStream Stream of the file with the image to recognize
5757 * @param fileName Name of the file with the image
5858 * @return {@link TaskInfo}
5959 */
60- CompletableFuture <TaskInfo > submitImageAsync (ImageSubmittingParams parameters , FileInputStream fileStream , String fileName );
60+ CompletableFuture <TaskInfo > submitImageAsync (ImageSubmittingParams parameters , InputStream fileStream , String fileName );
6161
6262
6363 /**
6464 * The method starts the processing task with the specified parameters.
6565 *
6666 * <b>Note:</b> This method allows you to process several images using the same settings and obtain recognition
67- * result as a multi-page document. You can upload several images to one task using {@link #submitImageAsync(ImageSubmittingParams, FileInputStream , String)} method.
67+ * result as a multi-page document. You can upload several images to one task using {@link #submitImageAsync(ImageSubmittingParams, InputStream , String)} method.
6868 * It is also possible to specify up to three file formats for the result, in which case the server response for the completed
6969 * task will contain several result URLs. Only the task with {@link TaskStatus#Submitted},
7070 * {@link TaskStatus#Completed} or {@link TaskStatus#NotEnoughCredits}
@@ -85,7 +85,7 @@ CompletableFuture<TaskInfo> processImageAsync(ImageProcessingParams parameters,
8585 * @param waitTaskFinished Indicates whether to wait until task is finished.
8686 * @return {@link TaskInfo}
8787 */
88- CompletableFuture <TaskInfo > processBusinessCardAsync (BusinessCardProcessingParams parameters , FileInputStream fileStream ,
88+ CompletableFuture <TaskInfo > processBusinessCardAsync (BusinessCardProcessingParams parameters , InputStream fileStream ,
8989 String fileName , boolean waitTaskFinished );
9090
9191 /**
@@ -102,7 +102,7 @@ CompletableFuture<TaskInfo> processBusinessCardAsync(BusinessCardProcessingParam
102102 * @param waitTaskFinished Indicates whether to wait until task is finished.
103103 * @return {@link TaskInfo}
104104 */
105- CompletableFuture <TaskInfo > processTextFieldAsync (TextFieldProcessingParams parameters , FileInputStream fileStream ,
105+ CompletableFuture <TaskInfo > processTextFieldAsync (TextFieldProcessingParams parameters , InputStream fileStream ,
106106 String fileName , boolean waitTaskFinished );
107107
108108 /**
@@ -121,7 +121,7 @@ CompletableFuture<TaskInfo> processTextFieldAsync(TextFieldProcessingParams para
121121 * @param waitTaskFinished Indicates whether to wait until task is finished.
122122 * @return {@link TaskInfo}
123123 */
124- CompletableFuture <TaskInfo > processBarcodeFieldAsync (BarcodeFieldProcessingParams parameters , FileInputStream fileStream ,
124+ CompletableFuture <TaskInfo > processBarcodeFieldAsync (BarcodeFieldProcessingParams parameters , InputStream fileStream ,
125125 String fileName , boolean waitTaskFinished );
126126
127127
@@ -138,7 +138,7 @@ CompletableFuture<TaskInfo> processBarcodeFieldAsync(BarcodeFieldProcessingParam
138138 * @param waitTaskFinished Indicates whether to wait until task is finished.
139139 * @return {@link TaskInfo}
140140 */
141- CompletableFuture <TaskInfo > processCheckmarkFieldAsync (CheckmarkFieldProcessingParams parameters , FileInputStream fileStream ,
141+ CompletableFuture <TaskInfo > processCheckmarkFieldAsync (CheckmarkFieldProcessingParams parameters , InputStream fileStream ,
142142 String fileName , boolean waitTaskFinished );
143143
144144 /**
@@ -161,7 +161,7 @@ CompletableFuture<TaskInfo> processCheckmarkFieldAsync(CheckmarkFieldProcessingP
161161 * @param waitTaskFinished Indicates whether to wait until task is finished.
162162 * @return {@link TaskInfo}
163163 */
164- CompletableFuture <TaskInfo > processFieldsAsync (FieldsProcessingParams parameters , FileInputStream fileStream ,
164+ CompletableFuture <TaskInfo > processFieldsAsync (FieldsProcessingParams parameters , InputStream fileStream ,
165165 String fileName , boolean waitTaskFinished );
166166
167167 /**
@@ -180,7 +180,7 @@ CompletableFuture<TaskInfo> processFieldsAsync(FieldsProcessingParams parameters
180180 * @param waitTaskFinished Indicates whether to wait until task is finished.
181181 * @return {@link TaskInfo}
182182 */
183- CompletableFuture <TaskInfo > processMrzAsync (MrzProcessingParams parameters , FileInputStream fileStream ,
183+ CompletableFuture <TaskInfo > processMrzAsync (MrzProcessingParams parameters , InputStream fileStream ,
184184 String fileName , boolean waitTaskFinished );
185185
186186 /**
@@ -200,7 +200,7 @@ CompletableFuture<TaskInfo> processMrzAsync(MrzProcessingParams parameters, File
200200 * @param waitTaskFinished Indicates whether to wait until task is finished.
201201 * @return {@link TaskInfo}
202202 */
203- CompletableFuture <TaskInfo > processReceiptAsync (ReceiptProccessingParams parameters , FileInputStream fileStream ,
203+ CompletableFuture <TaskInfo > processReceiptAsync (ReceiptProccessingParams parameters , InputStream fileStream ,
204204 String fileName , boolean waitTaskFinished );
205205
206206 /**
0 commit comments