1 |
49fd8648
|
Michal Horký
|
|
2 |
967b6b05
|
horkmi
|
/**
|
3 |
|
|
* The interface, which is implemented by Window and CLI, is used to transfer
|
4 |
|
|
* results from the conversion thread to the user interface (UI).
|
5 |
|
|
*/
|
6 |
49fd8648
|
Michal Horký
|
public interface IConversionResults {
|
7 |
|
|
|
8 |
967b6b05
|
horkmi
|
/**
|
9 |
|
|
* This method is used when an input read error occurs.
|
10 |
|
|
*/
|
11 |
49fd8648
|
Michal Horký
|
public void loadingInputFileError();
|
12 |
967b6b05
|
horkmi
|
|
13 |
|
|
/**
|
14 |
|
|
*
|
15 |
|
|
* This method is used to transfer the resulting JSON to the user interface. It
|
16 |
|
|
* also transmits the extracted input content (file, query).
|
17 |
|
|
*
|
18 |
|
|
* @param json the resulting JSON. It is null when a jdeserialize error
|
19 |
|
|
* occurs.
|
20 |
|
|
* @param loaded extracted input content. It is null if an input read error
|
21 |
|
|
* occurs.
|
22 |
|
|
*/
|
23 |
c670fa2f
|
@havlijan17
|
public void completed(String json, String loaded);
|
24 |
967b6b05
|
horkmi
|
|
25 |
49fd8648
|
Michal Horký
|
}
|