Revize 4bbee803
Přidáno uživatelem Jan Havlíček před více než 4 roky(ů)
project/Deserializer/src/Converter.java | ||
---|---|---|
28 | 28 |
try { |
29 | 29 |
String json = convert(FileWorker.loadByteArray(input)); |
30 | 30 |
|
31 |
String title = "Ulo?en? JSON";
|
|
31 |
String title = "Ulo�en� JSON";
|
|
32 | 32 |
if (FileWorker.saveJson(output, json)) { |
33 | 33 |
System.out.println("The JSON file was saved correctly."); |
34 |
Report.info(title, null, "Ulo?en? JSON souboru prob?hlo v po??dku.");
|
|
34 |
Report.info(title, null, "Ulo�en� JSON souboru prob�hlo v po��dku.");
|
|
35 | 35 |
} else { |
36 | 36 |
System.out.println("There was an error saving the JSON file."); |
37 |
Report.error(title, null, "P?i ukl?d?n? JSON souboru nastala chyba.");
|
|
37 |
Report.error(title, null, "P�i ukl�d�n� JSON souboru nastala chyba.");
|
|
38 | 38 |
} |
39 | 39 |
} catch (IOException e) { |
40 | 40 |
System.out.println("There was an error loading the file."); |
41 | 41 |
e.printStackTrace(); |
42 |
Report.error("Na??t?n? souboru", null, "P?i na??t?n? souboru do?lo k chyb?.");
|
|
42 |
Report.error("Na��t�n� souboru", null, "P�i na��t�n� souboru do�lo k chyb�.");
|
|
43 | 43 |
} |
44 | 44 |
|
45 | 45 |
main.convertIsComplete(); |
... | ... | |
62 | 62 |
{ |
63 | 63 |
if(cnt != null) |
64 | 64 |
{ |
65 |
json += cnt.simpleFormatToString();
|
|
65 |
json += cnt.toString();
|
|
66 | 66 |
} |
67 | 67 |
} |
68 | 68 |
|
Také k dispozici: Unified diff
#7794 Got rid of simpleToString.
Rewrote the toString() instead (no need to re-cast Object types)