Revize e608f492
Přidáno uživatelem Michal Horký před asi 4 roky(ů)
project/Deserializer/src/CLI.java | ||
---|---|---|
171 | 171 |
|
172 | 172 |
@Override |
173 | 173 |
public void completed(String html, String json, String loaded) { |
174 |
if (json != null && json.length() > 0) {
|
|
174 |
if (json != null) { |
|
175 | 175 |
System.out.println("Deserialization completed."); |
176 | 176 |
saveJson(json); |
177 | 177 |
} else { |
178 | 178 |
errorMessage("an error occurred while deserializing"); |
179 |
if (loaded != null) { |
|
180 |
System.out.println("The following actions (print, save) will work with the extracted content of the file."); |
|
181 |
saveJson(loaded); |
|
182 |
} else { |
|
183 |
// This shouldn't happen, it's catched by the loadingInputFileError(). |
|
184 |
System.out.println("The content read from the file is null."); |
|
185 |
} |
|
179 | 186 |
} |
180 | 187 |
} |
181 | 188 |
|
Také k dispozici: Unified diff
re #7967
Zobrazení obsahu i u prázdného souboru. V případě nenačtení dat ze souboru, DB - vyskakovací okno s chybou. Úprava pro logovací soubory (rozdělení na out a err).