1010import com .mindee .v2 .parsing .ErrorResponse ;
1111import com .mindee .v2 .parsing .JobResponse ;
1212import com .mindee .v2 .product .extraction .ExtractionResponse ;
13- import com .mindee .v2 .product .extraction .params .ExtractionParameters ;
1413import java .io .IOException ;
1514
1615/**
@@ -34,26 +33,6 @@ public MindeeClient(MindeeApiV2 mindeeApi) {
3433 this .mindeeApi = mindeeApi ;
3534 }
3635
37- /**
38- * @deprecated use `enqueue` instead.
39- */
40- public JobResponse enqueueInference (
41- LocalInputSource inputSource ,
42- ExtractionParameters params
43- ) throws IOException {
44- return enqueue (inputSource , params );
45- }
46-
47- /**
48- * @deprecated use `enqueue` instead.
49- */
50- public JobResponse enqueueInference (
51- URLInputSource inputSource ,
52- ExtractionParameters params
53- ) throws IOException {
54- return enqueue (inputSource , params );
55- }
56-
5736 /**
5837 * Enqueue a document in the asynchronous queue.
5938 *
@@ -88,13 +67,6 @@ public JobResponse getJob(String jobId) {
8867 return mindeeApi .reqGetJob (jobId );
8968 }
9069
91- /**
92- * @deprecated use `getResult` instead.
93- */
94- public ExtractionResponse getInference (String inferenceId ) {
95- return getResult (ExtractionResponse .class , inferenceId );
96- }
97-
9870 /**
9971 * Get the result of an inference that was previously enqueued.
10072 * The inference will only be available after it has finished processing.
@@ -109,26 +81,6 @@ public <TResponse extends CommonResponse> TResponse getResult(
10981 return mindeeApi .reqGetResult (responseClass , inferenceId );
11082 }
11183
112- /**
113- * @deprecated use `enqueueAndGetResult` instead.
114- */
115- public ExtractionResponse enqueueAndGetInference (
116- LocalInputSource inputSource ,
117- ExtractionParameters options
118- ) throws IOException , InterruptedException {
119- return enqueueAndGetResult (ExtractionResponse .class , inputSource , options );
120- }
121-
122- /**
123- * @deprecated use `enqueueAndGetResult` instead.
124- */
125- public ExtractionResponse enqueueAndGetInference (
126- URLInputSource inputSource ,
127- ExtractionParameters options
128- ) throws IOException , InterruptedException {
129- return enqueueAndGetResult (ExtractionResponse .class , inputSource , options );
130- }
131-
13284 /**
13385 * Send a local file to an async queue, poll, and parse when complete.
13486 *
0 commit comments