Line | |
---|
1 | package org.atea.nlptools.ocr.objects;
|
---|
2 |
|
---|
3 | import java.io.File;
|
---|
4 |
|
---|
5 | import org.atea.nlptools.ocr.abstractions.objects.IOcrFile;
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * Represents a temporary file to be OCR'ed.
|
---|
9 | */
|
---|
10 | public 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.