source: gs3-extensions/atea-nlp-tools/trunk/src/ocr/src/main/java/org/atea/nlptools/ocr/objects/OcrFile.java@ 35733

Last change on this file since 35733 was 35733, checked in by cstephen, 2 years ago

Add OCR servlet

File size: 964 bytes
Line 
1package org.atea.nlptools.ocr.objects;
2
3import java.io.File;
4
5import org.atea.nlptools.ocr.abstractions.objects.IOcrFile;
6
7/**
8 * Represents a temporary file to be OCR'ed.
9 */
10public class OcrFile implements IOcrFile
11{
12 private String key;
13 private String fileName;
14 private File tempFile;
15
16 /**
17 * Initializes a new instance of the {@link OcrFile} class.
18 * @param key The unique key of this file.
19 * @param fileName The name of the original submitted file.
20 * @param tempFile The temporary disk file to be OCR'ed.
21 */
22 public OcrFile(String key, String fileName, File tempFile)
23 {
24 this.key = key;
25 this.fileName = fileName;
26 this.tempFile = tempFile;
27 }
28
29 @Override
30 public String getKey() {
31 return this.key;
32 }
33
34 @Override
35 public String getFileName() {
36 return this.fileName;
37 }
38
39 @Override
40 public File getTempFile() {
41 return this.tempFile;
42 }
43}
Note: See TracBrowser for help on using the repository browser.